Skip to content

[Feature/功能]: 支持 /responses/compact 端点转发 #930

@ha0xin

Description

@ha0xin

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this feature has not been requested / 我已搜索现有 issues,此功能尚未被提出
  • I have read the documentation / 我已阅读文档

Problem Statement / 问题描述

添加Codex渠道后,在codex中使用 /compact 命令压缩上下文,出现

Error running remote compact task: stream disconnected before completion: expected value at line 1 column 1

报错,查找源代码发现 Axonhub 不支持 /responses/compact 端点

注:.codex/config.toml 中name需要为字符串 OpenAI,才能调用/responses/compact

[model_providers.axonhub]
name = "OpenAI"

Proposed Solution / 期望方案

支持 /responses/compact 请求转发

Alternatives Considered / 备选方案

No response

Feature Category / 功能分类

API Compatibility / API 兼容性

Additional Context / 其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions