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
+1
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: