Skip to content

[Bug/错误]: 升级至最新版本后 anthropic 接口转 codex 接口报错 #1843

Description

@jukanntenn

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this bug has not been reported / 我已搜索现有 issues,此 Bug 尚未被报告
  • I have read the documentation / 我已阅读文档
  • I am using the latest version of AxonHub / 我正在使用 AxonHub 的最新版本

FAQ Check / FAQ 检查

  • I have checked the FAQ and this bug is not covered there / 我已查阅 FAQ,此 Bug 未被覆盖

Bug Description / Bug 描述

渠道格式为 Anthropic message,客户端为 codex,所有请求均报 422 错误:

failed to stream request: Request failed: Unprocessable Entity, error: {"detail":[{"type":"missing","loc":["body","tools",10,"input_schema"],"msg":"Field required","input":{"type":"web_search_20250305","name":"web_search"}}]}, code: Unprocessable Entity, type: api_error

Steps to Reproduce / 复现步骤

  1. 创建 Anthropic 渠道
  2. 在 codex 中使用

Expected Behavior / 期望行为

原 0.9.x 版本使用时正常,升级 1.0 版本后报错,这可能是个回归 bug,期望 1.0 能和 0.9 版本一样正常使用。

Error Message / 错误消息

failed to stream request: Request failed: Unprocessable Entity, error: {"detail":[{"type":"missing","loc":["body","tools",10,"input_schema"],"msg":"Field required","input":{"type":"web_search_20250305","name":"web_search"}}]}, code: Unprocessable Entity, type: api_error

Operating System / 操作系统

Linux (Ubuntu/Debian) / Linux(Ubuntu/Debian)

AxonHub Version / AxonHub 版本

v1.0.0-beta3

Usage Scenario / 使用场景

Codex

API Format / API 格式

Anthropic - Messages (/v1/messages) / Anthropic Messages, OpenAI - Responses (/v1/responses) / OpenAI Responses

Channel Type / 渠道类型

Anthropic / Anthropic

Logs / 日志

Additional Context / 其他补充信息

No response

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions