summaryrefslogtreecommitdiffstats
path: root/config.example.yaml
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-02-16 18:32:33 +0800
committerGitHub <noreply@github.com>2024-02-16 18:32:33 +0800
commit179a5f574982c7973543dcfeafdb8647b01c3634 (patch)
tree13b884629a871a464a4ace4a1966fc73f3fb81fa /config.example.yaml
parent5e4210980d6ed92c3850042c7b57ca7eef028be0 (diff)
downloadaichat-179a5f574982c7973543dcfeafdb8647b01c3634.tar.gz
refactor: update vertexai/gemini/ernie clients (#309)
Diffstat (limited to 'config.example.yaml')
-rw-r--r--config.example.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.example.yaml b/config.example.yaml
index 77ee50b..9f02b4c 100644
--- a/config.example.yaml
+++ b/config.example.yaml
@@ -31,7 +31,7 @@ clients:
- type: gemini
api_key: AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- # For https://github.com/go-skynet/LocalAI or any OpenAI compatible API providers
+ # Any openai-compatible API providers or https://github.com/go-skynet/LocalAI
- type: localai
api_base: http://localhost:8080/v1
api_key: xxx
@@ -74,4 +74,7 @@ clients:
# See https://cloud.google.com/vertex-ai
- type: vertexai
api_base: https://{REGION}-aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/{REGION}/publishers/google/models
- api_key: xxx \ No newline at end of file
+ # Setup Application Default Credentials (ADC) file, Optional field
+ # 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> \ No newline at end of file