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

Closed
opened 2026-02-16 17:25:24 -05:00 by yindo · 5 comments
Owner

Originally created by @ncls-p on GitHub (Jun 19, 2025).

Originally assigned to: @thdxr on GitHub.

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
Originally created by @ncls-p on GitHub (Jun 19, 2025). Originally assigned to: @thdxr on GitHub. 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` ```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
yindo closed this issue 2026-02-16 17:25:24 -05:00
Author
Owner

@rkunnamp commented on GitHub (Jun 19, 2025):

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

@rkunnamp commented on GitHub (Jun 19, 2025): Do not think this is specific to opencode (not sure though). Have observed similar issues with helixmind apis in other frameworks as well.
Author
Owner

@ncls-p commented on GitHub (Jun 19, 2025):

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

@ncls-p commented on GitHub (Jun 19, 2025): Maybe it does not works the same way, i have not checked but i have no issue when using roo code with helixmind
Author
Owner

@rkunnamp commented on GitHub (Jun 19, 2025):

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.

@rkunnamp commented on GitHub (Jun 19, 2025): 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.
Author
Owner

@ncls-p commented on GitHub (Jun 19, 2025):

Okay, i did not know thanks for those informations !

@ncls-p commented on GitHub (Jun 19, 2025): Okay, i did not know thanks for those informations !
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#144