summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-06 08:35:40 +0800
committerGitHub <noreply@github.com>2024-03-06 08:35:40 +0800
commit8e5d4e55b1a5158a1f35adaf044dec545159f426 (patch)
treeb360cc4e9ad8acccea3c68b37057798cd1d657c0 /config.example.yaml
parentbe4e5e569a61c54d8ac8fb77144e9b1d01e3b81f (diff)
downloadaichat-8e5d4e55b1a5158a1f35adaf044dec545159f426.tar.gz
refactor: rename model's `max_tokens` to `max_input_tokens` (#339)
BREAKING CHANGE: rename model's `max_tokens` to `max_input_tokens`
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 69220f1..2d3c58f 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -52,11 +52,11 @@ clients:
chat_endpoint: /chat/completions # Optional field
models:
- name: llama2
- max_tokens: 8192
+ max_input_tokens: 8192
extra_fields: # Optional field, set custom parameters
key: value
- name: llava
- max_tokens: 8192
+ max_input_tokens: 8192
capabilities: text,vision # Optional field, possible values: text, vision
# See https://github.com/jmorganca/ollama
@@ -66,7 +66,7 @@ clients:
chat_endpoint: /chat # Optional field
models:
- name: mistral
- max_tokens: 8192
+ max_input_tokens: 8192
# See https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart
- type: azure-openai
@@ -74,7 +74,7 @@ clients:
api_key: xxx
models:
- name: MyGPT4 # Model deployment name
- max_tokens: 8192
+ max_input_tokens: 8192
# See https://cloud.google.com/vertex-ai
- type: vertexai