Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

With OPENAI_BASE_URL set, models that need the Responses API fail with tools

未关闭
#891 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
56/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
ai, backend

调研方向

Start by reading requiresResponsesApi(model) in shared/model-providers.ts and trace how the Bots' model and OPENAI_BASE_URL settings reach the CopilotKit runtime. Check how COPILOTKIT_OPENAI_API is currently configured and documented. Done means Bots using models that require the Responses API work with a custom base URL, and operators can find both settings documented.

由索引模型根据 Issue 内容生成。

描述

enhancement

What happens

With OPENAI_BASE_URL set to any host that is not OpenAI's or Azure's (a proxy, a gateway, a logging relay), the CopilotKit runtime uses Chat Completions for openai/... models:

[CopilotKit] OPENAI_BASE_URL is not an OpenAI or Azure host, so "openai/..." models use the Chat Completions API. To use the Responses API instead, set COPILOTKIT_OPENAI_API=responses.

Models from gpt-5.6 onward reject function tools on Chat Completions, so every Bot run with tools fails:

Function tools with reasoning_effort are not supported for gpt-6.1-terra in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'.

OpenBot already knows which models need the Responses API: requiresResponsesApi(model) in shared/model-providers.ts.

Suggested fix

When OPENAI_BASE_URL is set and requiresResponsesApi(model) is true for the Bots' model, set COPILOTKIT_OPENAI_API=responses for the runtime (unless the operator set it), or refuse at startup with a sentence naming the setting. Document both settings next to OPENAI_BASE_URL.

主要语言
TypeScript
星标
7.1k
派生
962
平均合并
1 天 6 小时
30 天内合并 PR
143

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CopilotKit/OpenBot 的其他 Issue

查看 CopilotKit/OpenBot 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。