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(