strong-ice-84145
10/29/2025, 1:36 PMFUNCTION_CALLING_PATTERN in https://github.com/OpenHands/agent-sdk/blob/93ce4fb7eeb607ba339a82ebb7f593389069308d/openhands-sdk/openhands/sdk/llm/utils/model_features.py
Should we make function calling the default and only keep a list of models that don't support function calling?
Why? Because right now if I want to try out a new model that supports openai/anthropic endpoints via the CLI, most likely (... how likely?) the model will support function calling so I need to add it to the list else the parsing of the llm tool commands will fail. So I need to merge a PR on agent-sdk + make sure the CLI links to the lasted agent-sdk main to take into account those changes -> time consuming.chilly-france-44439
10/29/2025, 1:38 PMstrong-ice-84145
10/29/2025, 1:40 PMchilly-france-44439
10/29/2025, 1:43 PMnutritious-balloon-65098
10/29/2025, 1:43 PMnutritious-balloon-65098
10/29/2025, 1:46 PMFUNCTION_CALLING_PATTERNS allowlist in model_features.py requires users to submit PRs just to try new models, creating unnecessary friction
• Proposed Solution: Default to function calling enabled for ALL models, and remove the allowlist entirely
• User Control: If a model doesn't support function calling, users can disable it via:
â—¦ UI toggle switch, OR
â—¦ function_calling=false in LLM kwargs
• Error Handling: Provide helpful error messages guiding users to disable function calling when needed
Rationale
• Most modern models support function calling (opposite of when the list was created)
• Eliminates maintenance burden of keeping the list updated
• Enables faster experimentation without waiting for PRs to merge
• Better user experience for trying new models
The issue has been created with the "enhancement" label and is ready for team discussion and implementation.
<sub>View full conversation</sub>limited-student-10747
10/29/2025, 1:53 PMcalm-artist-7206
10/29/2025, 2:06 PM