Skip to content

你们使用grok model ,没有碰到 {"error":{"message":"Content-Length header is required to make request. 错误吗? #2366

Description

@lz031615-arch

例行检查

[ +] 我已确认目前没有类似 issue
[ +] 我已确认我已升级到最新版本
[ + ] 我已完整查看过项目 README,尤其是常见问题部分
[ + ] 我理解并愿意跟进此 issue,协助测试和提供反馈
[+ ] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

渠道类型: Azure openai
使用grok model,报错
{"error":{"message":"Content-Length header is required to make request.

  • 位置:relay/adaptor/common.go DoRequestHelper 函数
  • 修复:在创建请求时设置 req.ContentLength 和 Content-Length 头

复现步骤

预期结果

相关截图
如果没有的话,请删除此节。

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