Skip to content

Ollama API compatibility issue for model name (model not found + wrong provider) 2 #3123

@Noobzik

Description

@Noobzik

Reopening as a new issue #3051
Prior related work : #3044

Feedback from the new build, not fixed as it seems @code-yeongyu @niStee :

PS C:\Users\XXX\Documents\git\claw-code\rust> git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2), pack-reused 0 (from 0)
Unpacking objects: 100% (3/3), 1.13 KiB | 27.00 KiB/s, done.
From https://github.com/ultraworkers/claw-code
   ee24ff2..21a9860  main       -> origin/main
Updating ee24ff2..21a9860
Fast-forward
 ROADMAP.md | 2 ++
 1 file changed, 2 insertions(+)
PS C:\Users\XXX\Documents\git\claw-code\rust> git checkout main
Already on 'main'
Your branch is up to date with 'origin/main'.
PS C:\Users\XXX\Documents\git\claw-code\rust> cargo build --workspace
warning: unused import: `std::path::Path`
 --> crates\plugins\src\hooks.rs:2:5
  |
2 | use std::path::Path;
  |     ^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: `plugins` (lib) generated 1 warning (run `cargo fix --lib -p plugins` to apply 1 suggestion)
warning: variable does not need to be mutable
   --> crates\runtime\src\hooks.rs:740:9
    |
740 |     let mut command_builder = {
    |         ----^^^^^^^^^^^^^^^
    |         |
    |         help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

warning: function `save_user_provider_settings` is never used
   --> crates\runtime\src\config.rs:617:8
    |
617 | pub fn save_user_provider_settings(
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: function `clear_user_provider_settings` is never used
   --> crates\runtime\src\config.rs:669:8
    |
669 | pub fn clear_user_provider_settings() -> Result<(), ConfigError> {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: function `read_settings_root` is never used
   --> crates\runtime\src\config.rs:688:4
    |
688 | fn read_settings_root(path: &Path) -> serde_json::Map<String, serde_json::Value> {
    |    ^^^^^^^^^^^^^^^^^^

warning: function `write_settings_root` is never used
   --> crates\runtime\src\config.rs:700:4
    |
700 | fn write_settings_root(
    |    ^^^^^^^^^^^^^^^^^^^

warning: `runtime` (lib) generated 5 warnings (run `cargo fix --lib -p runtime` to apply 1 suggestion)
   Compiling rusty-claude-cli v0.1.3 (C:\Users\XXX\Documents\git\claw-code\rust\crates\rusty-claude-cli)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.79s
PS C:\Users\XXX\Documents\git\claw-code\rust> .\target\debug\claw.exe --model "qwen2.5-coder:7b" prompt "hi"
[error-kind: invalid_model_syntax]
error: invalid model syntax: 'qwen2.5-coder:7b'. Expected provider/model (e.g., anthropic/claude-opus-4-6)
Did you mean `qwen/qwen2.5-coder:7b`? (Requires DASHSCOPE_API_KEY env var)

Run `claw --help` for usage.
PS C:\Users\XXX\Documents\git\claw-code\rust> .\target\debug\claw.exe --model "openai/qwen2.5-coder:7b" prompt "hi"

✘ ❌ Request failed
[error-kind: api_http_error]
error: api returned 404 Not Found (not_found_error): model 'openai/qwen2.5-coder:7b' not found

Run `claw --help` for usage.
PS C:\Users\XXX\Documents\git\claw-code\rust>

My git log :

commit 21a986034e852e7e4adf237de47a315bd25ab38a (HEAD -> main, origin/main, origin/HEAD)
Author: YeonGyu-Kim <code.yeon.gyu@gmail.com>
Date:   Mon May 25 20:02:44 2026 +0900

    docs(roadmap): add #702 agents source vs skills origin field name inconsistency

And my endpoint at v1/models

{"object":"list","data":[{"id":"qwen2.5-coder:7b","object":"model","created":1779707544,"owned_by":"library"},{"id":"hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M","object":"model","created":1779356204,"owned_by":"unsloth"}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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