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 issue #4653: [Bug]: AI Provider Configuration UI is showing Sonnet 20241022 twice #4658

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

openhands-agent
Copy link
Contributor

@openhands-agent openhands-agent commented Oct 31, 2024

This pull request fixes #4653.

The issue of the duplicate sonnet model in the dropdown menu has been successfully resolved by removing the redundant entry claude-3-5-sonnet-20240620 from VERIFIED_MODELS, since it was already present in VERIFIED_ANTHROPIC_MODELS. This simple configuration change prevents the model from appearing twice in the UI dropdown menu.

Automatic fix generated by OpenHands 🙌


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=ghcr.io/all-hands-ai/runtime:c9bdd22-nikolaik   --name openhands-app-c9bdd22   ghcr.io/all-hands-ai/runtime:c9bdd22

@@ -2,10 +2,10 @@
export const VERIFIED_PROVIDERS = ["openai", "azure", "anthropic"];
export const VERIFIED_MODELS = [
"gpt-4o",
"claude-3-5-sonnet-20240620",
Copy link
Contributor

Choose a reason for hiding this comment

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

You should not remove this.

Also, make sure you install pre-commit hooks and run make lint before commit. Your code has some linter error

@xingyaoww xingyaoww added the fix-me Attempt to fix this issue with OpenHands. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix-me Attempt to fix this issue with OpenHands.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: AI Provider Configuration UI is showing Sonnet 20241022 twice
2 participants