Skip to content

[Bug/错误]: Response API 应该保留 type: web_search 的工具 #1313

@pandada8

Description

@pandada8

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 的最新版本

Bug Description / Bug 描述

codex 发送的请求内包含 tool

{
      "type": "web_search",
      "external_web_access": true
    },

但是目前的 Reponses Inbound 会丢弃 llm.ToolTypeWebSearch ,应该保留 llm.ToolTypeWebSearch 并在 Responses Outbound 输出相关的 tool

Steps to Reproduce / 复现步骤

使用 codex 搜索『某地明天天气』

Expected Behavior / 期望行为

真的搜出来明天的天气

Error Message / 错误消息

Operating System / 操作系统

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

AxonHub Version / AxonHub 版本

v0.9.27

Usage Scenario / 使用场景

Codex

API Format / API 格式

OpenAI - Responses (/v1/responses) / OpenAI Responses

Channel Type / 渠道类型

OpenAI / OpenAI

Logs / 日志

Additional Context / 其他补充信息

No response

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