Skip to content

Commit ec51e08

Browse files
committed
feat: update LLM configuration to use platform and url fields
1 parent eccc4a4 commit ec51e08

File tree

12 files changed

+24
-12
lines changed

12 files changed

+24
-12
lines changed

config.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ vad_url = "http://localhost:9093/v1/audio/vad"
4040
# history = 1
4141

4242
[llm]
43-
prompts_url = "http://localhost:8001/default_dynamic_prompts.json"
44-
llm_chat_url = "https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains/v1/chat/completions"
43+
platform = "chat"
44+
url = "https://0xb2962131564bc854ece7b0f7c8c9a8345847abfb.gaia.domains/v1/chat/completions"
45+
#prompts_url = "http://localhost:8001/default_dynamic_prompts.json"
4546
api_key = "gaia-1234"
4647
history = 5
4748

examples/alibailian/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ speaker = "longhua_v2"
1919
# Get speaker list from https://help.aliyun.com/zh/model-studio/cosyvoice-java-sdk#722dd7ca66a6x
2020

2121
[llm]
22-
llm_chat_url = "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
22+
platform = "chat"
23+
url = "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
2324
api_key = "API-key"
2425
model = "qwen-plus"
2526
history = 5

examples/gaia/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ vad_url = "http://localhost:9093/v1/audio/vad"
1818

1919
# Requires a local LlamaEdge API server at port 9091: https://llamaedge.com/docs/ai-models/llm/quick-start-llm
2020
[llm]
21-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
21+
platform = "chat"
22+
url = "http://localhost:9091/v1/chat/completions"
2223
api_key = "Bearer gaia-1234"
2324
model = "default"
2425
history = 5

examples/gaia/english_teacher/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 5
2021

examples/gaia/oppenheimer/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 5
2021

examples/gaia/paris/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 5
2021

examples/gaia/singapore/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 5
2021

examples/gaia/steve_jobs/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 5
2021

examples/gaia/translate/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lang = "auto"
1414
vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
1515

1616
[llm]
17-
llm_chat_url = "http://localhost:9091/v1/chat/completions"
17+
platform = "chat"
18+
url = "http://localhost:9091/v1/chat/completions"
1819
api_key = "Bearer gaia-1234"
1920
history = 0
2021

examples/groq/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ vad_url = "http://localhost:9093/v1/audio/vad"
1919
# vad_realtime_url = "ws://localhost:9093/v1/audio/realtime_vad"
2020

2121
[llm]
22-
llm_chat_url = "https://api.groq.com/openai/v1/chat/completions"
22+
platform = "chat"
23+
url = "https://api.groq.com/openai/v1/chat/completions"
2324
api_key = "gsk_ABCD"
2425
model = "openai/gpt-oss-20b"
2526
history = 5

0 commit comments

Comments
 (0)