Skip to content

fix(litellm): LiteLLM proxy chat models are hidden from model lists and refused as not chat - #198582

Merged
obviyus merged 1 commit into
openclaw:mainfrom
masatohoshino:fix/litellm-mode-chat-rows
Nov 14, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
masatohoshino:fix/litellm-mode-chat-rows

Conversation

@masatohoshino

Copy link
Copy Markdown
Contributor

Closes #198581

What Problem This Solves

Fixes: with the LiteLLM provider, the chat models the proxy lists are hidden from model lists, and turns on them are refused.

  • openclaw models list --provider litellm --refresh lists only the plugin's built-in claude-opus-4-6, even for a model just set as the default.
  • openclaw agent --model litellm/<model> fails with "This model doesn't support chat; pick another model." and sends nothing to the proxy.

It started with #198288 (merge 2110db5a1d1c). With the same proxy, the commit before that merge lists the proxy's chat models and sends the turn.

User Impact

User impact: LiteLLM models that the proxy lists with mode: "chat" are back in model lists and run again. Embedding models and models without mode stay out of chat choices.

Why This Change Was Made

Since #198288, a discovered row whose id is not a known chat model needs a declared chat capability, or it is kept as not chat. A configured model the proxy lists then inherits that, so it is refused too. LiteLLM declares chat in its own field: each /v1/models row has mode: "chat", set from LiteLLM's model map or from model_info.mode in the proxy config. The shared discovery does not read mode.

The LiteLLM plugin now projects its rows before the shared discovery: a row with mode: "chat" gets capabilities: { chat: true }, and every row then goes through the shared rules unchanged. This is where docs/plugins/sdk-provider-plugins/model-catalogs.md puts provider-specific capability fields, as the Anthropic and Baseten projections do. Reading mode in the shared discovery instead would change admission for every OpenAI-compatible provider whose rows carry a mode, and none of the others was checked.

The LiteLLM provider docs now say which models are chat choices and that a chat deployment the proxy lists without a mode needs model_info.mode: chat.

Evidence

Tested at this PR's head (base main 211bc77fff45).

Setup:

  • The OpenClaw CLI from source (pnpm openclaw ...) on Linux x64. Each run has its own OPENCLAW_STATE_DIR.
  • A real LiteLLM 1.109.1 proxy (with the proxy extra), bound to 127.0.0.1, with five deployments:
    • gemini-2.5-flash (gemini/gemini-2.5-flash) and claude-opus-4-6 (anthropic/claude-opus-4-6);
    • text-embedding-004 (gemini/text-embedding-004);
    • local-qwen, OpenAI-compatible, with model_info.mode: chat;
    • local-unlabeled, OpenAI-compatible, without a mode.
  • No provider key was set for the proxy. It lists its models, but it answers every completion with 500 "Missing Gemini API key". No completion was sent on either side.
  • The proxy's own GET /v1/models, one row per line (the same on both sides):
{"id": "gemini-2.5-flash", "object": "model", "created": 1677610602, "owned_by": "openai", "mode": "chat", "max_input_tokens": 1048576, "max_output_tokens": 65536}
{"id": "claude-opus-4-6", "object": "model", "created": 1677610602, "owned_by": "openai", "mode": "chat", "max_input_tokens": 1000000, "max_output_tokens": 128000}
{"id": "text-embedding-004", "object": "model", "created": 1677610602, "owned_by": "openai", "mode": "embedding", "max_input_tokens": 2048}
{"id": "local-qwen", "object": "model", "created": 1677610602, "owned_by": "openai", "mode": "chat"}
{"id": "local-unlabeled", "object": "model", "created": 1677610602, "owned_by": "openai"}
  • Each run, on both sides:
    1. openclaw onboard --non-interactive --accept-risk --skip-health --auth-choice litellm-api-key --litellm-api-key <proxy key> --custom-base-url http://127.0.0.1:<port>/v1;
    2. openclaw models set litellm/gemini-2.5-flash;
    3. openclaw models list --provider litellm --refresh --json;
    4. openclaw agent --local --model litellm/gemini-2.5-flash -m "Say hi".
  • Every run on both sides also prints "log file append failed" lines. They refer to the default log file outside the isolated state directory.

Before (base main 211bc77fff45). ... marks omitted lines:

== openclaw models list --provider litellm --refresh --json
Gateway is not running. Refreshing the local model catalog.
...
{
  "count": 1,
  "models": [
    {
      "key": "litellm/claude-opus-4-6",
      "name": "Claude Opus 4.6",
      "input": "text+image",
      "contextWindow": 1000000,
      "local": true,
      "available": true,
      "tags": [
        "configured",
        "alias:LiteLLM"
      ]
    }
  ],
  "providerOutcomes": [
    {
      "provider": "litellm",
      "status": "ready"
    }
  ]
}
exit=0
== openclaw agent --local --model litellm/gemini-2.5-flash -m 'Say hi'
...
[model-fallback/decision] model fallback decision: decision=candidate_failed requested=litellm/gemini-2.5-flash candidate=litellm/gemini-2.5-flash reason=format next=none
...
This model doesn't support chat; pick another model.
[ELIFECYCLE] Command failed with exit code 1.
exit=1

After (this PR), with the same omission marks; the request ids are shortened to ...:

== openclaw models list --provider litellm --refresh --json
Gateway is not running. Refreshing the local model catalog.
...
{
  "count": 3,
  "models": [
    {
      "key": "litellm/gemini-2.5-flash",
      "name": "gemini-2.5-flash",
      "input": "text",
      "contextWindow": 1048576,
      "local": true,
      "available": true,
      "tags": [
        "default",
        "configured"
      ]
    },
    {
      "key": "litellm/claude-opus-4-6",
      "name": "Claude Opus 4.6",
      "input": "text+image",
      "contextWindow": 1000000,
      "local": true,
      "available": true,
      "tags": [
        "configured",
        "alias:LiteLLM"
      ]
    },
    {
      "key": "litellm/local-qwen",
      "name": "local-qwen",
      "input": "text",
      "contextWindow": 128000,
      "local": true,
      "available": true,
      "tags": []
    }
  ],
  "providerOutcomes": [
    {
      "provider": "litellm",
      "status": "ready"
    }
  ]
}
exit=0
== openclaw agent --local --model litellm/gemini-2.5-flash -m 'Say hi'
...
[provider-transport-fetch] [model-fetch] response provider=litellm api=openai-completions model=gemini-2.5-flash status=500 elapsedMs=4284 ...
[provider-error] Model request failed ... provider=litellm model=gemini-2.5-flash name=Error status=500 code=500 type=internal_server_error
...
[agent/embedded] transient retry window elapsed for litellm/gemini-2.5-flash after 6/8 retries; stopping same-model retries
...
[model-fallback/decision] model fallback decision: decision=candidate_failed requested=litellm/gemini-2.5-flash candidate=litellm/gemini-2.5-flash reason=server_error next=none
⚠️ The AI service is having trouble. Please try again in a moment.
...
exit=1

The proxy log during the After turn, one of its seven requests:

INFO:     127.0.0.1:<client port> - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
... LiteLLM Proxy:ERROR: ... litellm.APIConnectionError: Missing Gemini API key. ...
ValueError: Missing Gemini API key. Set the GEMINI_API_KEY or GOOGLE_API_KEY environment variable.

Observed result:

  • Base: "count": 1, only the built-in claude-opus-4-6. gemini-2.5-flash, set as the default one step earlier, and local-qwen are missing. The turn is refused with "This model doesn't support chat; pick another model." (reason=format), and the proxy logged no POST /v1/chat/completions during the run.
  • This PR: "count": 3: gemini-2.5-flash (tags default and configured, context window 1048576 from the proxy's row), claude-opus-4-6 and local-qwen. text-embedding-004 (mode: "embedding") and local-unlabeled (no mode) are not listed. The turn is sent to the proxy: the proxy logged seven POST /v1/chat/completions answered 500 for the missing provider key, and OpenClaw ended with "The AI service is having trouble." No completion was sent.
  • Where it started, same proxy and steps:
    • at 3bf446ef4475, the commit before the fix: hide non-chat models from chat selection #198288 merge: "count": 4 (gemini-2.5-flash, claude-opus-4-6, local-qwen and local-unlabeled), and the turn reaches the proxy and gets its 500s;
    • at 2110db5a1d1c, the merge: "count": 1 and "This model doesn't support chat; pick another model.".

Full captures:

Checks:

  • extensions/litellm/index.test.ts "discovers models from %j at %j" (5 base URL cases): the stubbed /v1/models row now has LiteLLM's shape, { id: "proxy-model", object: "model", mode: "chat" }, and the test expects the discovered row not to be marked as not chat. All 5 cases fail on base with expected [ [ 'proxy-model', false ] ] to deeply equal [ [ 'proxy-model', undefined ] ] and pass here. The file's other 8 tests pass on both.
  • Consumer tests pass: 5 files, 80 tests. They are the LiteLLM plugin tests (index, onboarding, image-generation-provider, image-generation-provider.url) and src/agents/agent-command-local.test.ts, the only test outside the plugin that names it.
  • pnpm tsgo passes.
  • pnpm check:changed:
    • format, lint, typecheck and the repository guards pass;
    • the dead export scan fails on 9 exports in files this PR does not touch, such as scripts/lib/ios-behavior-grade.mts (TELEPORT_PT). All of them are on base.
  • Size against base: production +20/−2 lines in extensions/litellm/index.ts, docs +5 lines, test lines net −1.
  • The broad suites run in this PR's CI.

Test cost, pnpm test <file> --maxWorkers=1, local:

File Tests Local wall Vitest New or changed test CI
extensions/litellm/index.test.ts 13 8.53 s 6.85 s 117 ms (5 cases) not yet run

Local review: autoreview (Codex gpt-6.1-sol, high), base 211bc77fff45 to head 684048e2d1ca, priority P0–P1. Its context was the shared live-row admission (src/plugin-sdk/provider-catalog-live-normalize.internal.ts), its public runtime barrel, the Anthropic projection, the configured-model merge (src/agents/models-config.merge.ts) and the model catalog docs. Result: scoped-clean, no findings.

Not covered:

  • Models the proxy lists without mode (an alias LiteLLM's model map does not know, on a deployment without model_info.mode) were chat choices before fix: hide non-chat models from chat selection #198288 (local-unlabeled above). They stay out of chat choices, as since that merge; the docs now say to set model_info.mode: chat for them.
  • Rows with mode: "completion" or mode: "responses" are not translated and stay out of chat choices; no such deployment was run.
  • The model menu of interactive openclaw onboard --auth-choice litellm-api-key reads the raw /v1/models rows, not the projected ones. It is unchanged and was not run.
  • A custom OpenAI-compatible provider pointed at a LiteLLM proxy does not use the LiteLLM plugin and was not run.
  • No completion: the proxy had no provider key, so the After turn ends at the proxy's 500.
  • No Gateway, channel or Control UI model picker was run; the lists above come from the CLI.
  • State written by the base build was not carried into this build; each run starts from an empty state directory. The change touches no config or stored-state format.

LiteLLM lists each model on /v1/models with `mode` ("chat",
"embedding", ...). Discovery now requires a declared chat capability for
ids outside the plugin's static list, and the shared reader does not read
`mode`, so every LiteLLM chat model except claude-opus-4-6 was kept as
non-chat: hidden from `openclaw models list` and the picker, and a
configured or setup-chosen LiteLLM model was refused with "This model
doesn't support chat; pick another model."

The LiteLLM catalog now translates `mode: "chat"` into the chat
capability before shared admission. Other modes and rows without a mode
keep the shared rules.
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: litellm size: XS labels Nov 14, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Translate LiteLLM model rows declaring mode "chat" into the shared catalog’s chat capability.

Example: A LiteLLM proxy advertises proxy-chat with mode "chat".

  • Before: The model is hidden, and an agent turn fails with “This model doesn't support chat.”
  • After: The model is listed, and the agent turn reaches LiteLLM and returns FIXTURE-REPLY-198582.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, correct provider repair with successful shipped-entry-point proof and no open findings; required CI remains in progress.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Exact-head CLI proof exercises model refresh and agent execution through a real LiteLLM proxy, producing a successful fixture reply with negative controls; the contributor’s earlier captures additionally show the original pre-transport rejection.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Valid LiteLLM chat models disappear from lists and configured turns are refused before contacting the proxy.
Reason: Restores declared chat deployments while respecting the existing decision to exclude unfamiliar models without affirmative capability metadata.

Regression provenance

Possible regression — probable (reviewed change; failure trace; known regression link). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR repairs a current LiteLLM regression with a focused provider-owned projection and convincing CLI proof; no actionable defects were found.

Priority: P1
Reviewed head: 684048e2d1caa718009982722f05ae0b7ebfff0e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The LiteLLM plugin supplies proxy model rows to shared catalog normalization, whose capability facts govern model listings and agent admission.

flowchart LR
  A[LiteLLM model endpoint] --> B[LiteLLM row projection]
  B --> C[Shared catalog normalization]
  C --> D[Model listings]
  C --> E[Agent admission]
  E --> F[LiteLLM chat endpoint]
Loading

Technical review

Best possible solution:

Merge the existing LiteLLM projection after required exact-head CI passes.

Do we have a high-confidence way to reproduce the issue?

Current source explains the rejection, and supplied base-versus-head CLI captures through a real LiteLLM proxy reproduce it; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is the smallest complete repair: translate LiteLLM’s fixed mode field at its existing provider boundary and retain shared classification, routing, and discovery ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against db8cab9d3ea3.

Provenance checked

  • LiteLLM discovery and shared chat admission keeps the original intent (55cf952: Live discovery exposes newly available provider models; the later admission policy in fix: hide non-chat models from chat selection #198288 requires declared chat support. The projection honors both purposes.)
  • Versioned LiteLLM endpoint selection keeps the original intent (b68264d: Prevent duplicated /v1/v1/models for configured versioned proxy URLs.)
  • Existing discovery test consolidation keeps the original intent (4ec56e7: Consolidate repeated fixtures while retaining distinct owner-boundary coverage; this PR strengthens the existing fixture and assertion without adding parallel scaffolding.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Masato Hoshino: Raw commit b68264d adds extensions/litellm/index.ts:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b68264d1d7c3; files: extensions/litellm/index.ts)
  • Peter Steinberger: Raw commit dec1f68 adds extensions/litellm/index.ts:101 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dec1f68d7e57; files: extensions/litellm/index.ts)

PR surface

Source +18, Tests -1, Docs +5. Total +22 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 20 2 +18
Tests 1 4 5 -1
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 29 7 +22

Preflight source

Source matches. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The current-main regression hides valid LiteLLM chat deployments and rejects configured agent turns before reaching the proxy.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T02:42:11.539Z sha 684048e :: blocked before merge. :: none

Reviewed November 13, 2026, 10:35 PM ET / November 14, 2026, 03:35 UTC (Revision 2).

@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: fix(litellm): LiteLLM proxy chat models are hidden from model lists and refused as not chat This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

Proof on 684048e (candidate) vs merge base 211bc77 (main). Both builds ran in a secretless node:24.22.1 container, against a real LiteLLM proxy (ghcr.io/berriai/litellm:main-stable, sha256:11175975a3) and a local OpenAI-compatible stand-in upstream. The proxy config has proxy-chat (model_info.mode: chat), proxy-embed (mode: embedding) and proxy-nomode (no mode).

The proxy's real /v1/models:

{"id":"proxy-chat",...,"mode":"chat"},{"id":"proxy-embed",...,"mode":"embedding"},{"id":"proxy-nomode",...}

Main, two runs (same both times):

$ openclaw models list --provider litellm --refresh
No models found.
$ openclaw agent --local --model litellm/proxy-chat --message "say hi" --json
"message": "This model doesn't support chat; pick another model."   exit=1

The proxy got no chat request.

Candidate, two runs (same both times):

$ openclaw models list --provider litellm --refresh
litellm/proxy-chat     text   128k   no   yes
$ openclaw agent --local --model litellm/proxy-chat --message "say hi" --json
"finalAssistantVisibleText": "FIXTURE-REPLY-198582"   exit=0

The proxy log shows POST /chat/completions 200 once per candidate run, and the upstream got the chat request each time.

Controls:

  • proxy-embed and proxy-nomode stay hidden on both builds, and agent refuses them with the same "doesn't support chat" error on both.
  • With claude-opus-4-6 added to the proxy, main lists litellm/claude-opus-4-6 text+image 1000k and the candidate lists that same row plus litellm/proxy-chat.
  • extensions/litellm/index.test.ts: 13/13 pass. oxlint and oxfmt are clean.

The diff only touches extensions/litellm/index.ts (it uses the existing projectRows discovery hook), its test and docs/providers/litellm.md. No shared selection or allowlist code changes.

@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 14, 2026
@obviyus
obviyus merged commit 48cdab3 into openclaw:main Nov 14, 2026
111 of 113 checks passed
@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

Landed in 48cdab3. Thanks @masatohoshino.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…nd refused as not chat (openclaw#198582)

fix(litellm): list and run LiteLLM models that declare chat mode

Since openclaw#198288 the model list only treats a model as chat when it declares chat support, but LiteLLM declares it as mode "chat", which the shared check did not read. So models list --provider litellm --refresh hid the proxy's chat models and agent --model litellm/<model> refused them with "This model doesn't support chat". LiteLLM model discovery now maps its own mode "chat" into the existing chat flag. Embedding models and models without a mode stay hidden as openclaw#198288 intends, and shared selection and allowlist rules are unchanged. No new text.

Evidence: the built CLI in a secretless node:24.22.1 container against a real LiteLLM proxy (official image) with a mode chat model, an embedding model and a model without mode, upstream a local stand-in, main twice and candidate twice. On main the chat model was not listed and the turn failed with "doesn't support chat" with no request reaching the proxy. With this change the chat model is listed and the turn reaches the proxy and returns the fixture reply. The embedding and no-mode models stay hidden on both, and a built-in model the proxy serves is listed on both. Net -1 test lines. Details: openclaw#198582 (comment).

Fixes openclaw#198581. Thanks @masatohoshino.

Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus added a commit that referenced this pull request Nov 16, 2026
…hat:false

* fix(models): read provider model kinds at one owner; unknown is not chat:false

The shared live-listing translator now reads each provider's capability
vocabulary: LiteLLM `mode`, DeepInfra `metadata.tags`, Venice/Together/
Vercel/models.dev `type`, oMLX/NVIDIA `model_type`, Hugging Face
`pipeline_tag` and the Ollama `capabilities` list. `chat` and `text` kinds
are affirmative; a declared non-chat kind beats text output, so embedding
and reranking rows that list `text` output are no longer shown.

A row with no evidence is unknown and treated as chat instead of being
recorded as `inference.chat: false`; as an interim rule, an unknown ID that
names a non-text family still gets `chat: false`. Within one listing, rows
that carry a kind field holding another value than a chat kind used by other
rows are not chat (Together `language`). The LiteLLM `mode` patch from
#198582 is removed; the shared translator yields the same rows.

Co-authored-by: obviyus <[email protected]>

* fix(models): read provider model kinds at one owner; unknown is not chat:false

OpenClaw-Publication: b583c461-57f1-4932-a8d9-1ab3794de058

* fix(models): classify explicit non-chat kinds on their own

LiteLLM `mode: "completion"` is now a declared non-chat kind, so a proxy
listing only completion models no longer admits them as chat; the
closed-world pass stays for unfamiliar values in a field the listing uses
for chat. The model-catalog pin test cleared no live-row cache, so its
audio-only case was served the previous case's bare listing; it now
clears the cache, and the bare-row case asserts the new unknown contract.
Cite the incident beside the Model Listing rule.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: adde80a3-c327-43b4-86a9-35026a695cf9

* fix(models): ignore saved catalogs written under the unknown-is-false rule

A Gateway built before this change saved listed models without capability
metadata as `inference.chat: false` in the persisted plugin model catalog.
After an upgrade, the startup catalog loaded those rows and the pre-run guard
kept refusing session and config pins to them for the whole first run, even
after discovery republished them without the veto; they recovered only on the
next restart. Saved catalogs now use the `plugin-model-catalog-v2` cache
scope, so this build starts from discovery instead of the stale rows. v1 rows
stay for older builds after a downgrade, and backups keep sanitizing them.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: 9690d624-6407-4e9e-aa3e-746a0a90a9c5

* revert(models): keep saved catalogs in the v1 cache scope

Reverts the plugin-model-catalog-v2 cache scope. Logout credential cleanup
searched only the new scope, so retained v1 rows kept plaintext credentials,
and every release user would cold-start after upgrading. No release saved the
old unknown-is-false value; a main or nightly install that ran #198288 can
see an affected pin refused until its first restart after upgrading, which
self-heals. Name that accepted edge beside the pre-run fallback.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: 3f0e5160-67d1-4c56-bc7a-5f51e798bcdb

---------

Co-authored-by: obviyus <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…hat:false

* fix(models): read provider model kinds at one owner; unknown is not chat:false

The shared live-listing translator now reads each provider's capability
vocabulary: LiteLLM `mode`, DeepInfra `metadata.tags`, Venice/Together/
Vercel/models.dev `type`, oMLX/NVIDIA `model_type`, Hugging Face
`pipeline_tag` and the Ollama `capabilities` list. `chat` and `text` kinds
are affirmative; a declared non-chat kind beats text output, so embedding
and reranking rows that list `text` output are no longer shown.

A row with no evidence is unknown and treated as chat instead of being
recorded as `inference.chat: false`; as an interim rule, an unknown ID that
names a non-text family still gets `chat: false`. Within one listing, rows
that carry a kind field holding another value than a chat kind used by other
rows are not chat (Together `language`). The LiteLLM `mode` patch from
openclaw#198582 is removed; the shared translator yields the same rows.

Co-authored-by: obviyus <[email protected]>

* fix(models): read provider model kinds at one owner; unknown is not chat:false

OpenClaw-Publication: b583c461-57f1-4932-a8d9-1ab3794de058

* fix(models): classify explicit non-chat kinds on their own

LiteLLM `mode: "completion"` is now a declared non-chat kind, so a proxy
listing only completion models no longer admits them as chat; the
closed-world pass stays for unfamiliar values in a field the listing uses
for chat. The model-catalog pin test cleared no live-row cache, so its
audio-only case was served the previous case's bare listing; it now
clears the cache, and the bare-row case asserts the new unknown contract.
Cite the incident beside the Model Listing rule.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: adde80a3-c327-43b4-86a9-35026a695cf9

* fix(models): ignore saved catalogs written under the unknown-is-false rule

A Gateway built before this change saved listed models without capability
metadata as `inference.chat: false` in the persisted plugin model catalog.
After an upgrade, the startup catalog loaded those rows and the pre-run guard
kept refusing session and config pins to them for the whole first run, even
after discovery republished them without the veto; they recovered only on the
next restart. Saved catalogs now use the `plugin-model-catalog-v2` cache
scope, so this build starts from discovery instead of the stale rows. v1 rows
stay for older builds after a downgrade, and backups keep sanitizing them.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: 9690d624-6407-4e9e-aa3e-746a0a90a9c5

* revert(models): keep saved catalogs in the v1 cache scope

Reverts the plugin-model-catalog-v2 cache scope. Logout credential cleanup
searched only the new scope, so retained v1 rows kept plaintext credentials,
and every release user would cold-start after upgrading. No release saved the
old unknown-is-false value; a main or nightly install that ran openclaw#198288 can
see an affected pin refused until its first restart after upgrading, which
self-heals. Name that accepted edge beside the pre-run fallback.

Co-authored-by: obviyus <[email protected]>

* Publish openclaw/chat-capability-step1

OpenClaw-Publication: 3f0e5160-67d1-4c56-bc7a-5f51e798bcdb

---------

Co-authored-by: obviyus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: litellm P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiteLLM proxy chat models are hidden from model lists and refused with "This model doesn't support chat"

2 participants