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 #4820: [Bug]: litellm doesn't support function calling model from OpenRouter. bug cause codeactagent couldn't interact with internet solely without ask browser agent for help #4822

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 Nov 7, 2024

This pull request fixes #4820.

The PR successfully resolved the issue by adding 'claude-3.5-sonnet' to the FUNCTION_CALLING_SUPPORTED_MODELS list in /workspace/openhands/llm/llm.py. This was a straightforward fix that enables function calling support for the OpenRouter model anthropic/claude-3.5-sonnet, which was previously unsupported. The change allows codeactagent to interact with the internet directly without requiring assistance from the browser agent, which was the core issue reported.

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=docker.all-hands.dev/all-hands-ai/runtime:1bbc7b6-nikolaik   --name openhands-app-1bbc7b6   docker.all-hands.dev/all-hands-ai/openhands:1bbc7b6

…l from OpenRouter. bug cause codeactagent couldn't interact with internet solely without ask browser agent for help
@@ -61,6 +61,7 @@
'claude-3-5-haiku-20241022',
'gpt-4o',
'gpt-4o-mini',
'claude-3.5-sonnet', # OpenRouter model name
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 also add claude-3-5-haiku too for OpenRouter.

@xingyaoww xingyaoww added the fix-me Attempt to fix this issue with OpenHands. label Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

OpenHands started fixing the pr! You can monitor the progress here.

1 similar comment
Copy link
Contributor

github-actions bot commented Nov 7, 2024

OpenHands started fixing the pr! You can monitor the progress here.

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
2 participants