Skip to content

Bug: Forced 'anthropic/' prefix causes "Unknown model" error with local Ollama providers #3003

@zizdoun4-afk

Description

@zizdoun4-afk

Description

The agent automatically appends the anthropic/ prefix to models even when configured to use a local Ollama instance. This leads to a connection failure because Ollama does not recognize the prefixed model name.

Steps to Reproduce

  1. Set up Ollama with qwen2.5-coder:7b.
  2. Configure clawdbot.json with primary: "qwen2.5-coder:7b".
  3. Run moltbot gateway.
  4. Observe the logs.

Observed Logs

[clawdbot] Model "qwen2.5-coder:7b" specified without provider. Falling back to "anthropic/qwen2.5-coder:7b".
[diagnostic] lane task error: error="Error: Unknown model: anthropic/qwen2.5-coder:7b"

Expected Behavior

The agent should respect the baseUrl and not force a provider prefix if it's already defined or if a local provider is intended.

Environment

  • Version: 2026.1.24-3
  • OS: Windows
  • LLM: Ollama (Local)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    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