Copilot API 缺少工具调用支持 | AI生成和翻译

首页 2026.03

Question: 来自 https://github.com/ericc-ch/copilot-api 的 GitHub Copilot API 是否具有 tool call 能力,类似于 OpenAI 风格的 function/tool calling?

Answer:

不,ericc-ch/copilot-api 不支持原生的 tool calling 或 function calling(即,在 chat completions 中传递 tools 参数并让模型返回 tool calls)。

Key Details

Alternatives for Tool Calling

如果你需要 tool/function calling:

简而言之,虽然 ericc-ch/copilot-api 非常适合通过熟悉的 OpenAI/Anthropic 客户端访问 Copilot,但它并不提供你所询问的 tool call 能力。

References:


AI生成和翻译,但整理分享仍需精力。如果觉得有帮助,欢迎 捐助支持。 微信:@lzwjavaWeChat QR · X: @lzwjava · 打个招呼 👋

返回 捐助