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

请求兼容VertexAI的claude消息队列限制 #305

Open
5 tasks done
coulsontl opened this issue Jul 18, 2024 · 0 comments
Open
5 tasks done

请求兼容VertexAI的claude消息队列限制 #305

coulsontl opened this issue Jul 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@coulsontl
Copy link

coulsontl commented Jul 18, 2024

例行检查

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

功能描述
希望兼容claude的消息队列限制 https://docs.anthropic.com/en/api/messages
image

这些队列情况在OpenAI是合法的,但是Claude就报错了

{
    "code": "error",
    "message": "Provider API error: messages: roles must alternate between \"user\" and \"assistant\", but found multiple \"assistant\" roles in a row (request id: 202407172324092051365530ekTXTjt)",
    "type": "invalid_request_error"
},

应用场景

@coulsontl coulsontl added the enhancement New feature or request label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant