Update readme.md

This commit is contained in:
Shunyu Yao 2023-05-26 00:27:49 +01:00 committed by GitHub
parent a819ac8032
commit 9a6aee43f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -6,17 +6,9 @@ Also check [its tweet thread](https://twitter.com/ShunyuYao12/status/16593575474
## Setup
You need to first have an OpenAI API key and store it in the environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)).
You need to first have an OpenAI API key and store it in the environment variable ``OPENAI_API_KEY`` (see [here](https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety)). If you use custom base url, set it by environment variable ``OPENAI_API_BASE`` (e.g. https://api.openai.com/v1).
If you use custom base url, set it by environment variable ``OPENAI_API_BASE`` (e.g. "https://api.openai.com/v1").
(Note GPT-4 model is farily slow, please be patient.)
Package requirement: ``openai``, ``backoff``, ``sympy``, ``numpy``.
```
pip install openai backoff sympy numpy
```
Package requirement: ``pip install openai backoff sympy numpy``
## Experiments