summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-12-20 07:49:05 +0800
committerGitHub <noreply@github.com>2023-12-20 07:49:05 +0800
commit64c4edf7c8af771d1d7a229507187eae2e3d03d3 (patch)
tree7b36820dedc67e7342c3634afffe705760f2c306 /config.example.yaml
parent6c9d7a679ea0097ab12f295caf16bec3e75ee267 (diff)
downloadaichat-64c4edf7c8af771d1d7a229507187eae2e3d03d3.tar.gz
feat: support ollama (#276)
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml31
1 files changed, 20 insertions, 11 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 502969b..874a53f 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -22,26 +22,35 @@ clients:
api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
organization_id:
- # See https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart
- - type: azure-openai
- api_base: https://RESOURCE.openai.azure.com
- api_key: xxx
- models:
- - name: MyGPT4 # Model deployment name
- max_tokens: 8192
+ # See https://ai.google.dev/docs
+ - type: gemini
+ api_key: AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# See https://github.com/go-skynet/LocalAI
- type: localai
api_base: http://localhost:8080/v1
api_key: xxx
- chat_endpoint: /chat/completions
+ chat_endpoint: /chat/completions # Optional field
models:
- name: gpt4all-j
max_tokens: 8192
- # See https://ai.google.dev/docs
- - type: gemini
- api_key: AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ # See https://github.com/jmorganca/ollama
+ - type: ollama
+ api_base: http://localhost:11434/api
+ api_key: Baisc xxx
+ chat_endpoint: /chat # Optional field
+ models:
+ - name: gpt4all-j
+ max_tokens: 8192
+
+ # See https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart
+ - type: azure-openai
+ api_base: https://RESOURCE.openai.azure.com
+ api_key: xxx
+ models:
+ - name: MyGPT4 # Model deployment name
+ max_tokens: 8192
# See https://cloud.baidu.com/doc/WENXINWORKSHOP/index.html
- type: ernie