summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-31 06:36:52 +0800
committerGitHub <noreply@github.com>2023-10-31 06:36:52 +0800
commit36380475d5bd923f537e1aa29cad9f63bd138d40 (patch)
tree773a5f08daaa865e14020a73ff137239bd5c5b1d /config.example.yaml
parent86fd9d207e780931f8dc152bf90387de481fb3ee (diff)
downloadaichat-36380475d5bd923f537e1aa29cad9f63bd138d40.tar.gz
feat: support azure-openai (#166)
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 32d8d37..6798ce1 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -16,12 +16,22 @@ clients: # Setup AIs
proxy: socks5://127.0.0.1:1080
connect_timeout: 10
+ # See https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart
+ - type: azure-openai # Azure openai configuration
+ api_base: https://RESOURCE.openai.azure.com # Azure openai base URL
+ api_key: xxx # Azure openai api key, alternative to AZURE_OPENAI_KEY
+ models: # Support models
+ - name: MyGPT4 # Model deployment name
+ max_tokens: 8192
+ proxy: socks5://127.0.0.1:1080 # Set proxy server. Optional
+ connect_timeout: 10 # Set a timeout in seconds for connect to gpt. Optional
+
# See https://github.com/go-skynet/LocalAI
- type: localai # LocalAI configuration
url: http://localhost:8080/v1/chat/completions # LocalAI api server
api_key: xxx # Api key. alternative to LOCALAI_API_KEY
models: # Support models
- name: gpt4all-j
- max_tokens: 4096
+ max_tokens: 8192
proxy: socks5://127.0.0.1:1080
connect_timeout: 10 \ No newline at end of file