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

Claude模型多轮对话后报错 #237

Closed
6 tasks done
SHLE1 opened this issue Jul 24, 2024 · 9 comments
Closed
6 tasks done

Claude模型多轮对话后报错 #237

SHLE1 opened this issue Jul 24, 2024 · 9 comments
Labels

Comments

@SHLE1
Copy link

SHLE1 commented Jul 24, 2024

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整浏览项目 README 和项目文档并未找到解决方案
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我将以礼貌和尊重的态度提问,不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
使用claude-3-5-sonnet模型多轮对话后会出现报错,稳定复现,日志如下

[DEBUG] - [2024-07-24 15:35:15] - [sse] request failed with status: 400 Bad Request
response: {"error":{"code":"error","message":"Provider API error: messages: first message must use the \"user\" role (request id: 202407241536201035967397AHrZz4L)","type":"invalid_request_error"}}
[WARNING] - [2024-07-24 15:35:15] - [channel] caught error Provider API error: messages: first message must use the "user" role  (type: invalid_request_error) for model claude-3-5-sonnet-20240620 at channel one-api
[INFO] - [2024-07-24 15:35:15] - [channel] channels are exhausted for model claude-3-5-sonnet-20240620
[WARNING] - [2024-07-24 15:35:15] - Provider API error: messages: first message must use the "user" role  (type: invalid_request_error) (model: claude-3-5-sonnet-20240620, client: ***

相关截图 (如果有)
image

@SHLE1 SHLE1 added the bug Something isn't working label Jul 24, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Claude model reported an error after multiple rounds of dialogue

@zmh-program
Copy link
Owner

是不是上游接的中转

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Is it a transfer from upstream?

@SHLE1
Copy link
Author

SHLE1 commented Jul 24, 2024

oneapi接的vertex

@zmh-program
Copy link
Owner

那就是了 one的bug

@zmh-program
Copy link
Owner

duplicate #227

@zmh-program zmh-program added channel and removed bug Something isn't working labels Jul 24, 2024
@SHLE1
Copy link
Author

SHLE1 commented Jul 24, 2024

换成anthropic渠道,使用onehub提供的/claude接口,解决了此问题

@SHLE1 SHLE1 closed this as completed Jul 24, 2024
@zmh-program
Copy link
Owner

好的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants