feat: LangGraph接口改用bailian-qwen3-max模型

This commit is contained in:
martsforever
2025-11-26 12:46:27 +08:00
parent a3e8d739ed
commit 5b5cecae6a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -71,6 +71,11 @@ ai_configs = {
'url': 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions', 'url': 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions',
'key': env.llm_key_bailian, 'key': env.llm_key_bailian,
}, },
'bailian-qwen3-max': {
'model': 'qwen3-max',
'url': 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions',
'key': env.llm_key_bailian,
},
'bailian-embedding': { 'bailian-embedding': {
'model': 'text-embedding-v4', 'model': 'text-embedding-v4',
'url': 'https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings', 'url': 'https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings',
+1 -1
View File
@@ -35,7 +35,7 @@ class ChatAgent:
@staticmethod @staticmethod
async def get_agent(system_prompt: str | None = None) -> CompiledStateGraph: async def get_agent(system_prompt: str | None = None) -> CompiledStateGraph:
return create_react_agent( return create_react_agent(
model=create_llm("huoshan-think-pro"), model=create_llm("bailian-qwen3-max"),
tools=tool_list, tools=tool_list,
checkpointer=await PostgresCheckpointerManager.get_instance(), checkpointer=await PostgresCheckpointerManager.get_instance(),
prompt=system_prompt or """ prompt=system_prompt or """