Skip to content

Tool calling canary fails for tool-capable models via OpenAI-compatible API (OpenCode client) #166

Description

@ewanc26

Using the OpenAI-compatible endpoint (https://cocore.dev/api/v1) as a custom
provider in OpenCode, tool-calling requests fail against multiple models with:

No connected provider supports tool calling for this model. The provider
must be started with vLLM tool calling enabled and pass the startup
forced-tool canary.

Tried against:

  • mlx-community/Qwen3.5-4B-MLX-4bit (6 machines)
  • mlx-community/Qwen3.6-35B-A3B-4bit-DWQ

Client config declares "tools": true on the model entry, and plain
(non-tool) chat completions work fine against the same models — this only
surfaces once tools/tool_choice are included in the request.

Since OpenCode's core workflow depends on tool calling, this makes any
co/core-backed model currently unusable as an OpenCode provider, regardless
of how many machines are serving it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions