summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-25 21:06:35 +0800
committerGitHub <noreply@github.com>2024-03-25 21:06:35 +0800
commit7f05dc1a4af868b64906666c65020838cf2aa985 (patch)
tree43c5639c647ceac79dbcbfa867865e06e45d56cc /config.example.yaml
parent0ebc7955da67b488877cab7929019d40688fb3ed (diff)
downloadaichat-7f05dc1a4af868b64906666c65020838cf2aa985.tar.gz
feat: support customizing gemini safeSettings (#375)
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.example.yaml b/config.example.yaml
index f61fe8e..2e6efed 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -37,6 +37,7 @@ clients:
# See https://ai.google.dev/docs
- type: gemini
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ block_threshold: BLOCK_NONE # Optional field, choices: BLOCK_NONE, BLOCK_ONLY_HIGH, BLOCK_MEDIUM_AND_ABOVE, BLOCK_LOW_AND_ABOVE
# See https://docs.anthropic.com/claude/reference/getting-started-with-the-api
- type: claude
@@ -58,7 +59,7 @@ clients:
key: value
- name: llava
max_input_tokens: 8192
- capabilities: text,vision # Optional field, possible values: text, vision
+ capabilities: text,vision # Optional field, choices: text, vision
# See https://github.com/jmorganca/ollama
- type: ollama
@@ -84,6 +85,7 @@ clients:
# Run `gcloud auth application-default login` to setup adc
# see https://cloud.google.com/docs/authentication/external/set-up-adc
adc_file: <path-to/gcloud/application_default_credentials.json>
+ block_threshold: BLOCK_ONLY_HIGH # Optional field, choices: BLOCK_NONE, BLOCK_ONLY_HIGH, BLOCK_MEDIUM_AND_ABOVE, BLOCK_LOW_AND_ABOVE
# See https://cloud.baidu.com/doc/WENXINWORKSHOP/index.html
- type: ernie