summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-01-30 18:28:12 +0800
committerGitHub <noreply@github.com>2024-01-30 18:28:12 +0800
commita30c3cc4c1757245e704273b047b44edb8293602 (patch)
tree7f58fd6fb0b7faacf8e2fabcbaee8870e454697e /config.example.yaml
parentfe35cfd9419302f01baf9672493c0b0a4b41d889 (diff)
downloadaichat-a30c3cc4c1757245e704273b047b44edb8293602.tar.gz
feat: add openai.api_base config (#302)
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.example.yaml b/config.example.yaml
index ce12cce..2263cce 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -24,13 +24,14 @@ clients:
# See https://platform.openai.com/docs/quickstart
- type: openai
api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- organization_id:
+ api_base: https://api.openai.com/v1 # Optional field
+ organization_id: org-xxxxxxxxxxxxxxxxxxxxxxxx # Optional field
# See https://ai.google.dev/docs
- type: gemini
api_key: AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- # See https://github.com/go-skynet/LocalAI
+ # For https://github.com/go-skynet/LocalAI or any OpenAI compatible API providers
- type: localai
api_base: http://localhost:8080/v1
api_key: xxx