Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioTranscription接口返回400异常, 确认为bug #1945

Open
5 tasks done
theo-answerai opened this issue Nov 26, 2024 · 1 comment
Open
5 tasks done

AudioTranscription接口返回400异常, 确认为bug #1945

theo-answerai opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@theo-answerai
Copy link

例行检查

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

问题描述
调用audio/transcriptions接口返回400.

复现步骤

预期结果

相关截图
image
已定位到问题为common/gin.go中的UnmarshalBodyReusable方法.
c.ShouldBind在MultipartForm场景下调用了ParseMultipartForm, 把Body的数据消耗完了, 最后导致audio/transcriptions逻辑中使用Body作为请求体, 实际请求到openai的是空.

@theo-answerai theo-answerai added the bug Something isn't working label Nov 26, 2024
@shengbox
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants