ollama [问题/建议] 函数调用的结果,

svmlkihl  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(25)

目前我正在尝试使用函数调用(获取JSON结果),并将函数调用的结果返回给LLM。在使用聊天API时,您可以指定系统、用户和助手。我想知道我们是否能够添加函数结果选项
获取以下聊天记录:

{
"type": "system",
"content": "When ask about the weather give a Json Output."
},
{
"type": "user",
"content": "What is the weather like in Brussels?"
},
{
"type": "assistent",
"content": "{
   "City":"Brussel"
}"
},
{
"type": "function_result",
"content": "{
 Temperature: "24 C"
 Rain: "40%"
 }"
},
{
"type": "assistent",
"content": "Currently it is 24 degrees Celsius and there is a 40% chance of rain. "
}

或者已经有方法可以使用函数调用的结果了吗?

0lvr5msh

0lvr5msh1#

我不确定这是否重要,或者这是你的意图,但助手应该是助手。

相关问题