From b09ca18cb99b01fa4046bd0e37c1a3ec7757a9f8 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Thu, 21 May 2026 16:52:42 +0800 Subject: [PATCH] update bugs --- config/xfyun.json | 6 +++--- engine/pipeline.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/xfyun.json b/config/xfyun.json index 2a6694c..2d3eba0 100644 --- a/config/xfyun.json +++ b/config/xfyun.json @@ -33,9 +33,9 @@ }, "llm": { "provider": "openai", - "api_key": "sk-fc4d59b360475f53401a864db8ce0985010acc4e696723d20a90d6569f38d80a", - "base_url": "https://api.qnaigc.com/v1", - "model": "deepseek-v3", + "api_key": "sk-230701ff1b6143ecbf322b3170606016", + "base_url": "https://api.deepseek.com/v1", + "model": "deepseek-chat", "temperature": 0.7 }, "tts": { diff --git a/engine/pipeline.py b/engine/pipeline.py index 525ac9e..4110ba3 100644 --- a/engine/pipeline.py +++ b/engine/pipeline.py @@ -79,9 +79,9 @@ async def run_pipeline_with_serializer( llm = create_llm_service(config.services.llm) tts = create_tts_service(config.services.tts, config.audio) - messages = [{"role": "developer", "content": config.agent.system_prompt}] + messages = [{"role": "system", "content": config.agent.system_prompt}] if config.agent.greeting and config.agent.greeting_mode == "generated": - messages.append({"role": "developer", "content": config.agent.greeting}) + messages.append({"role": "system", "content": config.agent.greeting}) context = LLMContext(messages) user_aggregator, assistant_aggregator = LLMContextAggregatorPair(