feat: LangGraph接口改用bailian-qwen3-max模型
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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 """
|
||||||
|
|||||||
Reference in New Issue
Block a user