Skip to content

[Bug/错误]: 在 zed 编辑器中调用 axonhub 转发的 deepseek 报错 #1587

@lijc210

Description

@lijc210

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 描述

deepseek-v4-flash与deepseek-v4-pro模型:

openai格式报错:
failed to stream request: Request failed: Bad Request, error: An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message), code: invalid_request_error, type: invalid_request_error

zed编辑器自带的deepseek连接方式是正常的

Steps to Reproduce / 复现步骤

在 zed 编辑器中调用 axonhub 转发的 deepseek-v4-flash与deepseek-v4-pro模型

Expected Behavior / 期望行为

正常调用工具

Error Message / 错误消息

Operating System / 操作系统

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

AxonHub Version / AxonHub 版本

v0.9.38

Usage Scenario / 使用场景

Other / 其他

API Format / API 格式

N/A / 不适用

Channel Type / 渠道类型

N/A / 不适用

Logs / 日志

Additional Context / 其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions