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

fix: Handle error for empty assistant message in claude #157

Closed
kevin-on opened this issue Dec 5, 2024 · 0 comments · Fixed by #156
Closed

fix: Handle error for empty assistant message in claude #157

kevin-on opened this issue Dec 5, 2024 · 0 comments · Fixed by #156

Comments

@kevin-on
Copy link
Collaborator

kevin-on commented Dec 5, 2024

Consecutive user input with empty assistant message raises following error:

Failed to generate response Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1: all messages must have non-empty content except for the optional final assistant message"}}

@kevin-on kevin-on converted this from a draft issue Dec 5, 2024
@kevin-on kevin-on linked a pull request Dec 5, 2024 that will close this issue
@kevin-on kevin-on moved this from Backlog to In review in Smart Composer Dec 5, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Smart Composer Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant