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

Gin 框架json字段排序导致json schema mode字段跟原始字段顺序不一致, 影响 json 思维链表现 #1883

Open
5 tasks done
lijie97 opened this issue Oct 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lijie97
Copy link

lijie97 commented Oct 21, 2024

例行检查

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

问题描述
Gin 框架 json 字段排序导致 json schema mode 字段跟原始字段顺序不一致, 影响 json 思维链表现

同样的请求体, 请求 oneapi 和 openai/azure 返回顺序不一致

复现步骤
使用 json_schema 模式请求 oneapi

预期结果
图片

相关截图
图片

@lijie97 lijie97 added the bug Something isn't working label Oct 21, 2024
@Yuiffy
Copy link

Yuiffy commented Oct 22, 2024

同样问题

@fengdi1996
Copy link

我也碰到这个问题了,好麻烦

@songquanpeng
Copy link
Owner

看起来默认做了排序

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

4 participants