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

chore/(chat): Add a retry button for Cody API version error (CODY-4864) #6926

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

julialeex
Copy link
Contributor

@julialeex julialeex commented Feb 4, 2025

This PR is for the fix-it issue "Add a retry button for Cody API version error".

WHY
When we have a network error, it can cause temporary Cody API version error. It would be nice to allow user to retry for retriable errors like this.

WHAT
Add a retry button for Cody API version error.

Test plan

CI & tested locally with debugger (see Loom video)

@julialeex julialeex changed the title fix(chat): Add a retry button for Cody API version error CODY-4864 fix/(chat): Add a retry button for Cody API version error CODY-4864 Feb 4, 2025
@julialeex julialeex changed the title fix/(chat): Add a retry button for Cody API version error CODY-4864 fix/(chat): Add a retry button for Cody API version error (CODY-4864) Feb 4, 2025
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment in-line, but looking more into this, I wonder if we actually need to check for the CodyAPIVersion anymore since Cody Gateway has deprecated support for claude-2 models, and only serve Claude 3.5 models, which will always use version 2 of the API 🤔

lib/shared/src/chat/chat.ts Outdated Show resolved Hide resolved
@julialeex julialeex changed the title fix/(chat): Add a retry button for Cody API version error (CODY-4864) chore/(chat): Add a retry button for Cody API version error (CODY-4864) Feb 4, 2025
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