XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

fix: update tool call indexing in GeminiCLI provider

44976af5
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/needs_auth/GeminiCLI.py +1 -1
@@ -864,7 +864,7 @@ class GeminiCLIProvider():
864 864 for i, part in enumerate(tool_calls):
865 865 tc = part["functionCall"]
866 866 tool_call_obj = {
867 "index": i,
867 "index": tool_calls_index,
868 868 "id": tc.get("id", f"call_{i}_{tc.get('name', 'unknown')}"),
869 869 "type": "function",
870 870 "function": {