更新marsho函数以处理tool_calls,优化函数调用参数,添加占位符参数以兼容部分模型(如GLM)

This commit is contained in:
2024-12-29 06:33:52 +08:00
parent 7c6319b839
commit 4b2676b9fc
3 changed files with 24 additions and 4 deletions

View File

@ -95,6 +95,7 @@ async def make_chat(
messages=msg,
model=model_name,
tools=tools,
tool_choice="auto",
temperature=config.marshoai_temperature,
max_tokens=config.marshoai_max_tokens,
top_p=config.marshoai_top_p,