Skip to content

Tool usage failures with Claude Sonnet 4 via openai compatible provider despite working fine with direct Claude subscription #210

Closed

Description

@ncls-p

V.0.1.98
Issue: Tool usage failures with Claude Sonnet 4 via HelixMind provider despite working fine with direct Claude subscription

Description

Experiencing tool usage failures when using claude-sonnet-4-20250514 through the HelixMind provider (OpenAI-compatible API), while the same model works perfectly with a direct Claude subscription.

Expected Behavior

Tool usage should work consistently regardless of whether accessing Claude through direct subscription or via HelixMind provider.

Actual Behavior

  • ✅ Claude subscription: All tools work as expected
  • ❌ HelixMind provider: Tool usage consistently fails
  • No models through HelixMind provider are functioning properly

Reproduction Steps

  1. Configure HelixMind provider with the config below
  2. Attempt to use tools with claude-sonnet-4-20250514
  3. Observe tool usage failures

Configuration

File: ~/.config/opencode/config.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "helixmind": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "HelixMind",
      "options": {
        "baseURL": "https://helixmind.online/v1"
      },
      "models": {
        "gpt-4.1": {},
        "claude-sonnet-4-20250514": {},
        "deepseek-chat": {},
        "o3-high": {},
        "deepseek-reasoner": {}
      }
    }
  }
}

Additional Context

  • Chat session example: https://opencode.ai/s/1eebc84c
  • Issue appears to be provider-specific rather than model-specific
  • All configured models in HelixMind provider are affected

Activity

  1. changed the title [-]Can't manage to properly use tools[/-] [+]Tool usage failures with Claude Sonnet 4 via openai compatible provider despite working fine with direct Claude subscription[/+] on Jun 19, 2025
  2. rkunnamp commented on Jun 19, 2025

    @rkunnamp

    Do not think this is specific to opencode (not sure though). Have observed similar issues with helixmind apis in other frameworks as well.

  3. ncls-p commented on Jun 19, 2025

    @ncls-p
    Author

    Maybe it does not works the same way, i have not checked but i have no issue when using roo code with helixmind

  4. rkunnamp commented on Jun 19, 2025

    @rkunnamp

    roo code does not make use of native function calling. Roo code asks the llm to mock fucntion calls by formatting the response in xml tags , and then parses the xml to identify the function associated .

    It is native function callling that is broken in helixmind . In certain cases native function calling works in helixmind.
    I could not yet identify when it will work and when it gets broken.

  5. self-assigned this
    on Jun 19, 2025
  6. ncls-p commented on Jun 19, 2025

    @ncls-p
    Author

    Okay, i did not know thanks for those informations !

  7. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  8. added a commit that references this issue on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions