Skip to content

支持 Claude 模型 #287

Open
Open

Description

@Terry-Mao

如题,除了 OpenAI,Anthropic 的模型协议也需要支持

Activity

  1. added
    area:workflowGitHub workflows and Python automation scripts
    enhancementNew feature or request
    needs-infoMore information is needed before progress
    repro:unknownThere is not enough information to estimate reproducibility
    on Oct 2, 2026
  2. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    Triage 结论

    这是一个有效的增强请求:在 OpenAI 之外原生支持 Anthropic(Claude)模型。作者在触发评论中已补充方向:原生 Anthropic Messages API + Claude Coding Agent、可自定义 ENDPOINT、新增 CLAUDE_ENDPOINT、CLAUDE_API_KEY、CLAUDE_MODEL。此前 triage 的 needs-info 追问基本得到答复,不再需要追问。

    • 分类:enhancement
    • 复现:unknown(功能请求,不涉及复现步骤)
    • 置信度:medium
    • 相关文件:README.md、docs/github-collaboration-flow.md、.github/aicodingflow-tests/test_codex_model_provider_config.py、.github/workflows/triage-issue.yml(全部 Codex workflow 共享同一套模型配置)

    现状与根因

    所有 Codex workflow 统一使用 openai/codex-action@v1,通过 CODEX_API_ENDPOINT(Responses API)、CODEX_API_KEY、CODEX_MODEL 这组共享配置调用模型;.github/aicodingflow-tests/test_codex_model_provider_config.py 校验全部 workflow 保持这套配置,README.md 与 docs/github-collaboration-flow.md 也把 Responses API 定义为硬约束。仓库没有 provider/action 抽象,而 Anthropic Messages API 与 Responses API 协议不同,因此 Claude 目前只能经 LiteLLM/OneAPI 等转换网关间接接入,无法原生使用。

    要实现作者要求(原生 Anthropic Messages API、自定义 ENDPOINT、新增 CLAUDE_* 变量),需要引入 provider 抽象或替换/并行 action,并同步更新共享测试与文档。

    重复检测

    已按工作流提供的候选列表检查,未发现 2 个及以上满足阈值的重复 issue。#278「支持自定义模型厂商」、#235「GitHub工作流问题」虽在“支持非 OpenAI 模型”上相关,但一个更宽泛、一个标题与诉求不同,且均已关闭,不满足重复判定条件。

  3. Terry-Mao commented on Oct 2, 2026

    @Terry-Mao
    OwnerAuthor
    1. 原生支持 Anthropic Messages API + Claude Coding Agent
    2. 可以自定义 ENDPOINT
    3. 新增 CLAUDE_ENDPOINT,CLAUDE_API_KEY,CLAUDE_MODEL
  4. added
    triagedIssue has been reviewed and categorized
    and removed
    needs-infoMore information is needed before progress
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowGitHub workflows and Python automation scriptsenhancementNew feature or requestrepro:unknownThere is not enough information to estimate reproducibilitytriagedIssue has been reviewed and categorized

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions