Skip to content

Commit 4f49de6

Browse files
roshatron2roshan.john
andauthored
Update API key configuration in config.yml.template to use environment variable syntax for improved flexibility and security. This change standardizes the way API keys are referenced across different models and services. (#273)
Co-authored-by: roshan.john <roshanjohn1460@gmail.com>
1 parent 0803f54 commit 4f49de6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

config/config.yml.template

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ models:
3535
api_family: openai
3636
model_name: llama3.1:latest
3737
model_url: http://localhost:11434/v1
38-
api_key: ${OPENAI_API_KEY:-ollama}
38+
api_key: ${oc.env:OPENAI_API_KEY,ollama}
3939
model_params:
4040
temperature: 0.2
4141
max_tokens: 2000
@@ -47,7 +47,7 @@ models:
4747
api_family: openai
4848
model_name: nomic-embed-text:latest
4949
model_url: http://localhost:11434/v1
50-
api_key: ${OPENAI_API_KEY:-ollama}
50+
api_key: ${oc.env:OPENAI_API_KEY,ollama}
5151
embedding_dimensions: 768
5252
model_output: vector
5353
- name: openai-llm
@@ -57,7 +57,7 @@ models:
5757
api_family: openai
5858
model_name: gpt-4o-mini
5959
model_url: https://api.openai.com/v1
60-
api_key: ${OPENAI_API_KEY:-}
60+
api_key: ${oc.env:OPENAI_API_KEY,''}
6161
model_params:
6262
temperature: 0.2
6363
max_tokens: 2000
@@ -69,7 +69,7 @@ models:
6969
api_family: openai
7070
model_name: text-embedding-3-small
7171
model_url: https://api.openai.com/v1
72-
api_key: ${OPENAI_API_KEY:-}
72+
api_key: ${oc.env:OPENAI_API_KEY,''}
7373
embedding_dimensions: 1536
7474
model_output: vector
7575
- name: groq-llm
@@ -79,7 +79,7 @@ models:
7979
api_family: openai
8080
model_name: llama-3.1-70b-versatile
8181
model_url: https://api.groq.com/openai/v1
82-
api_key: ${GROQ_API_KEY:-}
82+
api_key: ${oc.env:GROQ_API_KEY,''}
8383
model_params:
8484
temperature: 0.2
8585
max_tokens: 2000
@@ -89,17 +89,17 @@ models:
8989
model_type: vector_store
9090
model_provider: qdrant
9191
api_family: qdrant
92-
model_url: http://${QDRANT_BASE_URL:-qdrant}:${QDRANT_PORT:-6333}
92+
model_url: http://${oc.env:QDRANT_BASE_URL,qdrant}:${oc.env:QDRANT_PORT,6333}
9393
model_params:
94-
host: ${QDRANT_BASE_URL:-qdrant}
95-
port: ${QDRANT_PORT:-6333}
94+
host: ${oc.env:QDRANT_BASE_URL,qdrant}
95+
port: ${oc.env:QDRANT_PORT,6333}
9696
collection_name: omi_memories
9797
- name: stt-parakeet-batch
9898
description: Parakeet NeMo ASR (batch)
9999
model_type: stt
100100
model_provider: parakeet
101101
api_family: http
102-
model_url: http://${PARAKEET_ASR_URL:-172.17.0.1:8767}
102+
model_url: http://${oc.env:PARAKEET_ASR_URL,172.17.0.1:8767}
103103
api_key: ''
104104
operations:
105105
stt_transcribe:
@@ -118,13 +118,13 @@ models:
118118
model_provider: deepgram
119119
api_family: http
120120
model_url: https://api.deepgram.com/v1
121-
api_key: ${DEEPGRAM_API_KEY:-}
121+
api_key: ${oc.env:DEEPGRAM_API_KEY,''}
122122
operations:
123123
stt_transcribe:
124124
method: POST
125125
path: /listen
126126
headers:
127-
Authorization: Token ${DEEPGRAM_API_KEY:-}
127+
Authorization: Token ${oc.env:DEEPGRAM_API_KEY,''}
128128
Content-Type: audio/raw
129129
query:
130130
model: nova-3

0 commit comments

Comments
 (0)