agent功能开发增加MCP后端
This commit is contained in:
@@ -1300,7 +1300,7 @@ class MCPAgentIntegrated:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = self.kimi_client.chat.completions.create(
|
response = self.kimi_client.chat.completions.create(
|
||||||
model="kimi-k2-turbpreview", # 使用非思考模型,更快
|
model="kimi-k2-turbopreview", # 使用非思考模型,更快
|
||||||
messages=messages,
|
messages=messages,
|
||||||
temperature=0.7,
|
temperature=0.7,
|
||||||
max_tokens=1000,
|
max_tokens=1000,
|
||||||
@@ -1355,7 +1355,7 @@ class MCPAgentIntegrated:
|
|||||||
"total_execution_time": sum(r.execution_time for r in step_results),
|
"total_execution_time": sum(r.execution_time for r in step_results),
|
||||||
"model_used": {
|
"model_used": {
|
||||||
"planning": self.kimi_model,
|
"planning": self.kimi_model,
|
||||||
"summarization": "kimi-k2-turbpreview",
|
"summarization": "kimi-k2-turbopreview",
|
||||||
"news_summary": self.deepmoney_model,
|
"news_summary": self.deepmoney_model,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user