summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-11-01 10:28:54 +0800
committerGitHub <noreply@github.com>2023-11-01 10:28:54 +0800
commit7f2210dbcab017ee30e8f95771e68494b4860c59 (patch)
tree7a0c7bdc8f6930e262bf8cfdc8ffbd57aa843e40 /config.example.yaml
parent64202758ec8693dd18951c554728bb5c6b7e5eeb (diff)
downloadaichat-7f2210dbcab017ee30e8f95771e68494b4860c59.tar.gz
refactor: clients/* and config.rs (#193)
- add register_clients macro to make it easier to add a new client - no create_client_config, just add const PROMPTS - move ModelInfo from clients/ to config/ - model's max_tokens are optional - improve code quanity on config/mod.rs - add/use macro config_get_fn
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml11
1 files changed, 4 insertions, 7 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 52c147c..42c5f6e 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -10,33 +10,30 @@ keybindings: emacs # REPL keybindings. values: emacs, vi
clients:
# All clients have the following configuration:
- # ```
# - type: xxxx
# name: nova # Only use it to distinguish clients with the same client type. Optional
# extra:
# proxy: socks5://127.0.0.1:1080 # Specify https/socks5 proxy server. Note HTTPS_PROXY/ALL_PROXY also works.
# connect_timeout: 10 # Set a timeout in seconds for connect to server
- # ```
# See https://platform.openai.com/docs/quickstart
- type: openai
api_key: sk-xxx
- organization_id: org-xxx # Organization ID. Optional
+ 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: # Support models
+ models:
- name: MyGPT4 # Model deployment name
max_tokens: 8192
-
# See https://github.com/go-skynet/LocalAI
- type: localai
api_base: http://localhost:8080/v1
api_key: xxx
- chat_endpoint: /chat/completions # Optional
- models: # Support models
+ chat_endpoint: /chat/completions
+ models:
- name: gpt4all-j
max_tokens: 8192 \ No newline at end of file