-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一定要支持 function calling吗? #39
Comments
不支持 function calling 的模型,硬要实现的话,效果会很不稳定,没法用。另外, huggingface 里也有很多模型支持
function calling
dominikusacom ***@***.***>于2024年10月19日 周六22:13写道:
… huggingface好像不支持。
是不是可以询问时先跑搜索,然后把答案包在 role: "system" 一起给后面API。
或是多跑一圈让一个API负责转换成关键字搜索,另一个API让他复述答案。
—
Reply to this email directly, view it on GitHub
<#39>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A77NZSXUSYGZTYMJAYMBCFDZ4JSI5AVCNFSM6AAAAABQHQXQGSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4TSMRSGU4TANY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
这种方法能替代function calling吗? |
结果我发现Qwen是支持function calling的,应该说所有huggingface的inference API都支持。 tools | object[] | 只要用上抱抱脸的tools,经过Search2ai的会话就会Internal Server Error, 请求处理时发生错误: SyntaxError: "[object Object]" is not valid JSON { role: 'user', content: '你好' }, |
huggingface的Qwen2.5或llama-3.2-11B好像不支持。
是不是可以询问时先跑搜索,然后把答案包在 role: "system" 一起给后面API。
或是多跑一圈让一个API负责转换成关键字搜索,另一个API让他复述答案。
The text was updated successfully, but these errors were encountered: