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 inference error gracefully #44

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

mdjastrzebski
Copy link
Member

@mdjastrzebski mdjastrzebski commented Apr 1, 2024

Summary

OpenAI & Perplexity APIs require user and assistant messages to be alternating for chat completion call. When error happened in calling that APIs, we left unanswered user message. This fix removes such message.

Test plan

Manual testing.

@mdjastrzebski mdjastrzebski merged commit 5a9acd5 into main Apr 2, 2024
4 checks passed
@mdjastrzebski mdjastrzebski deleted the fix/handle-inference-error branch April 2, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant