Skip to content

qwen2.5-coder is not able to execute any tools #2229

Description

@cowwoc

What version of Codex is running?

codex-cli 0.21.0

Which model were you using?

qwen2.5-coder:14b

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

  1. Given this config.toml:
projects = { '[redacted]' = { trust_level = "trusted" } }

approval_policy = "on-request"
sandbox_mode    = "workspace-write"

[sandbox_workspace_write]
network_access = true

[model_providers.ollama]
name = "Ollama"
base_url = "http://127.0.0.1:11434/v1"

[profiles.ollama]
model_provider = "ollama"
model = "qwen2.5-coder:14b"
  1. set RUST_LOG=codex_core=debug,codex_tui=debug
  2. Run codex --profile ollama "List the files in the current directory"
  3. I get this output:

user
List the files in the current directory

codex
{"name": "shell", "arguments": {"command": ["ls"]}}

I will attach the debug log file below.

What is the expected behavior?

Codex should execute the "shell" tool

What do you see instead?

The instruction is listed as part of the chat

Additional information

codex-tui.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions