Skip to content
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

[Feature]: 对于Gemini新功能Function calling的适配 #891

Open
AlanBacker opened this issue Sep 26, 2024 · 2 comments
Open

[Feature]: 对于Gemini新功能Function calling的适配 #891

AlanBacker opened this issue Sep 26, 2024 · 2 comments
Labels
m: 工具 工具(ToolUse、内容函数)相关 pd: 待复现 pending: 需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息

Comments

@AlanBacker
Copy link

这是一个?

新功能

详细描述

近期Google更新了新的功能 Function calling,可以通过调用js来进行一系列操作,比如联网
求适配,这是官方文档:https://ai.google.dev/gemini-api/docs/function-calling
这是隔壁大佬做的一个web search的示例:https://github.com/hihumanzone/Gemini-OpenAI-web-search-function-call

@RockChinQ
Copy link
Owner

现在 Gemini 只支持用 OneAPI 接入,你试一下在 llm-models.json 给对应模型启用一下 func calling 看看能不能直接用?

参考:

@AlanBacker
Copy link
Author

测试了一下开启不了,有点懵,请求一些指引,谢谢。这是我的llm-models.json已经配置好的设置:
{
"model_name": "gemini-1.5-pro-002",
"name": "OneAPI/gemini-1.5-pro-002",
"tool_call_supported": true
},

@RockChinQ RockChinQ added pd: 待测试 pending: 待测试的PR pd: 待复现 pending: 需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息 and removed pd: 待测试 pending: 待测试的PR labels Sep 26, 2024
@RockChinQ RockChinQ added the m: 工具 工具(ToolUse、内容函数)相关 label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m: 工具 工具(ToolUse、内容函数)相关 pd: 待复现 pending: 需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息
Projects
None yet
Development

No branches or pull requests

2 participants