support new openai package

This commit is contained in:
seehi 2023-12-05 15:27:57 +08:00
parent eaf531e0ac
commit 09134c9c72
8 changed files with 73 additions and 15 deletions

View file

@ -2,10 +2,10 @@
# The configuration of key.yaml has a higher priority and will not enter git
#### if OpenAI
## The official OPENAI_BASE_URL is https://api.openai.com/v1/
## The official OPENAI_BASE_URL is https://api.openai.com/v1
## If the official OPENAI_BASE_URL is not available, we recommend using the [openai-forward](https://github.com/beidongjiedeguang/openai-forward).
## Or, you can configure OPENAI_PROXY to access official OPENAI_BASE_URL.
OPENAI_BASE_URL: "https://api.openai.com/v1/"
OPENAI_BASE_URL: "https://api.openai.com/v1"
#OPENAI_PROXY: "http://127.0.0.1:8118"
#OPENAI_API_KEY: "YOUR_API_KEY" # set the value to sk-xxx if you host the openai interface for open llm model
OPENAI_API_MODEL: "gpt-4"