让GPT进行复杂函数调用(嵌套Function Calling)的方法

目前Function Calling应该是不支持嵌套调用的

下面提供了一种简单的解决方案:给ChatGPT“获取当前位置”以及“查询温度”的函数,让他告诉我今天该穿什么衣服。

Here are some tools:
getLocalLocation() : String city
getTemperture(String city): String temperature

The first request is: 我今天出门该穿什么衣服?
Let's think from a general view.
If you find it impossible to answer based on tools, answer it on your own, and ignore the following prompts.

Let's think step by step.
If you need more information, call the function by outputing the function, and I will give you the response of this function.
Each time you could only return 1 function.

Just return the result or function directly, without anything else.

让GPT进行复杂函数调用(嵌套Function Calling)的方法 ChatGPT

本文标题:《让GPT进行复杂函数调用(嵌套Function Calling)的方法》作者:Scar
原文链接:https://aki.cc/post/66.html
特别注明外均为原创,转载请注明。

分享到微信

扫描二维码

可在微信查看或分享至朋友圈。

下一篇: 未命名

相关文章

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。