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

Auto-retry from a 5XX Chat API response #69

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

yen-tt
Copy link
Collaborator

@yen-tt yen-tt commented May 6, 2024

  • created a new hook, useSendMessageWithRetries, that sends a message to the chat API, and perform retries if the API returns a 5xx status code.
  • updated ChatInput and MessageSuggestions component to use the new hook to retry once for failed 5xx responses.
  • updated ChatPanel to show a retry text next to loading dots ("Error occurred. Retrying")

Will deploy a new minor (0.9.0) once merged

J=CLIP-1189
TEST=manual&auto

see unit tests passed
see that it works as expected in test-site

retry-final.mov

@yen-tt yen-tt requested a review from a team as a code owner May 6, 2024 18:55
@yen-tt yen-tt merged commit 6aa7f23 into main May 7, 2024
9 checks passed
@yen-tt yen-tt deleted the dev/retry-message branch May 7, 2024 14:33
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.

2 participants