Skip to content

fix(providers): Together chat models are hidden from model lists and refused as not chat - #198703

Closed
masatohoshino wants to merge 1 commit into
openclaw:mainfrom
masatohoshino:fix/together-chat-type-rows
Closed

masatohoshino wants to merge 1 commit into
openclaw:mainfrom
masatohoshino:fix/together-chat-type-rows

Conversation

@masatohoshino

Copy link
Copy Markdown
Contributor

Closes #198702

What Problem This Solves

Fixes: with the Together provider, every chat model outside the plugin's two built-in models is hidden from model lists, and turns on such a model are refused.

  • openclaw models list --provider together --refresh lists only zai-org/GLM-5.2 and meta-llama/Llama-3.3-70B-Instruct-Turbo, though Together's /v1/models lists more models with type: "chat".
  • openclaw agent --model together/<listed chat model> fails with "This model doesn't support chat; pick another model." and sends nothing to Together.

It started with #198288 (merge 2110db5a1d1c). With the same /v1/models rows, the commit before that merge lists those models and sends the turn.

User Impact

User impact: Together models that /v1/models lists with type: "chat" are back in model lists and run again. Embedding, image and other non-text models, and language (base) models, stay out of chat choices.

Why This Change Was Made

Since #198288, a discovered row whose id is not in the plugin catalog needs a declared chat capability, or it is kept as not chat. Together declares it in each /v1/models row as type (Together's own SDK types it as one of chat, language, code, image, embedding, moderation, rerank, audio, transcribe, video). The shared check, readLiveModelChatCapability, already reads type as the row's kind and rejects the non-text kinds, but it accepts only llm, vlm, text-generation and <modality>-text-to-text as chat, so type: "chat" declared nothing.

The shared check now also accepts the kind chat. The fix is in the shared admission rather than in a Together row projection because that check already owns the kind vocabulary for every provider (oMLX's llm/vlm were added there by #198288), and src/plugins/AGENTS.md puts listing gaps in that one rule. A projection, as #198582 added for LiteLLM, translates a field the shared check does not read (LiteLLM's mode); type is one it reads. The model catalog docs now name Together's chat type among the kinds that qualify chat rows.

Any provider whose rows carry type, task, model_type, modelType or pipeline_tag "chat" now gets those rows admitted as chat. Together is the only bundled provider checked to send it.

Evidence

Tested at this PR's head (base main 009fcd9b53b2).

Setup:

  • The OpenClaw CLI built from source (node scripts/run-node.mjs ...), run in a node:24-slim container on Linux x64 with no route out. Each run has its own OPENCLAW_STATE_DIR.
  • A local TLS stand-in for api.together.xyz, not the real Together server. No Together key was available, and the Together plugin has no base URL override, so api.together.xyz resolves to a second container that serves /v1/models rows in the shape of Together's own SDK ModelObject and answers chat completions with a fixed reply. It logs every request. The same stand-in served every run.
  • Its GET /v1/models, one row per line (pricing, link, license and created shortened to ...):
{"id": "meta-llama/Llama-3.3-70B-Instruct-Turbo", "object": "model", "type": "chat", "display_name": "Llama 3.3 70B Instruct Turbo", "organization": "meta-llama", "context_length": 131072, ...}
{"id": "zai-org/GLM-5.2", "object": "model", "type": "chat", "display_name": "GLM 5.2", "organization": "zai-org", "context_length": 262144, ...}
{"id": "deepseek-ai/DeepSeek-V3.1", "object": "model", "type": "chat", "display_name": "DeepSeek V3.1", "organization": "deepseek-ai", "context_length": 131072, ...}
{"id": "Qwen/Qwen3-235B-A22B-Instruct-2507-tput", "object": "model", "type": "chat", "display_name": "Qwen3 235B A22B Instruct 2507", "organization": "Qwen", "context_length": 262144, ...}
{"id": "meta-llama/Meta-Llama-3-8B", "object": "model", "type": "language", "display_name": "Meta Llama 3 8B", "organization": "meta-llama", "context_length": 8192, ...}
{"id": "BAAI/bge-large-en-v1.5", "object": "model", "type": "embedding", "display_name": "BAAI-Bge-Large-1p5", "organization": "BAAI", "context_length": 512, ...}
{"id": "black-forest-labs/FLUX.1-schnell", "object": "model", "type": "image", "display_name": "FLUX.1 [schnell]", "organization": "black-forest-labs", "context_length": 0, ...}
  • Each side is built from source before its run; no run rebuilt during the run (no "dist is stale" line on either side).
  • Each run, on both sides:
    0. the driver fetches GET /v1/models once itself (plain node fetch), to print the rows above; it is the first GET in each stand-in log below, not an OpenClaw request;
    1. openclaw onboard --non-interactive --accept-risk --skip-health --mode local --auth-choice together-api-key --together-api-key <synthetic key>;
    2. openclaw models list --provider together --refresh --json;
    3. openclaw agent --local --session-id <id> --model together/deepseek-ai/DeepSeek-V3.1 -m "Say hi".
  • Every run on both sides also prints environment lines, shortened to ... below and in the captures:
    • "Staging pinned Bun fork ..." and "Bun fork unavailable ... using Node" (the pinned Bun runtime could not be downloaded without network);
    • "log file append failed";
    • [state/agent-db] agent-database receipts;
    • a temp-root warning about the group-writable proof directory, with its "(Use node --trace-warnings ..." line;
    • onboard's "Tip: run openclaw configure --section web ..." line.

Before (base main 009fcd9b53b2). ... marks omitted lines:

== openclaw models list --provider together --refresh --json
...
Gateway is not running. Refreshing the local model catalog.
...
{
  "count": 2,
  "models": [
    {
      "key": "together/zai-org/GLM-5.2",
      "name": "GLM 5.2 FP4",
      "input": "text",
      "contextWindow": 262144,
      "local": false,
      "available": true,
      "tags": [
        "default",
        "configured",
        "alias:Together AI"
      ]
    },
    {
      "key": "together/meta-llama/Llama-3.3-70B-Instruct-Turbo",
      "name": "Llama 3.3 70B Instruct Turbo",
      "input": "text",
      "contextWindow": 131072,
      "local": false,
      "available": true,
      "tags": []
    }
  ],
  "providerOutcomes": [
    {
      "provider": "together",
      "status": "ready"
    }
  ]
}
exit=0
== openclaw agent --local --session-id <id> --model together/deepseek-ai/DeepSeek-V3.1 -m 'Say hi'
...
[model-fallback/decision] model fallback decision: decision=candidate_failed requested=together/deepseek-ai/DeepSeek-V3.1 candidate=together/deepseek-ai/DeepSeek-V3.1 reason=format next=none
...
This model doesn't support chat; pick another model.
exit=1
== stand-in request log (the first GET is the driver's own fetch)
... GET /v1/models auth=bearer -> 200 (7 rows)
... GET /v1/models auth=bearer -> 200 (7 rows)

After (this PR), with the same omission marks; timestamps and the run id are shortened to ...:

== openclaw models list --provider together --refresh --json
...
Gateway is not running. Refreshing the local model catalog.
...
{
  "count": 4,
  "models": [
    {
      "key": "together/zai-org/GLM-5.2",
      "name": "GLM 5.2 FP4",
      "input": "text",
      "contextWindow": 262144,
      "local": false,
      "available": true,
      "tags": [
        "default",
        "configured",
        "alias:Together AI"
      ]
    },
    {
      "key": "together/meta-llama/Llama-3.3-70B-Instruct-Turbo",
      "name": "Llama 3.3 70B Instruct Turbo",
      "input": "text",
      "contextWindow": 131072,
      "local": false,
      "available": true,
      "tags": []
    },
    {
      "key": "together/deepseek-ai/DeepSeek-V3.1",
      "name": "DeepSeek V3.1",
      "input": "text",
      "contextWindow": 131072,
      "local": false,
      "available": true,
      "tags": []
    },
    {
      "key": "together/Qwen/Qwen3-235B-A22B-Instruct-2507-tput",
      "name": "Qwen3 235B A22B Instruct 2507",
      "input": "text",
      "contextWindow": 262144,
      "local": false,
      "available": true,
      "tags": []
    }
  ],
  "providerOutcomes": [
    {
      "provider": "together",
      "status": "ready"
    }
  ]
}
exit=0
== openclaw agent --local --session-id <id> --model together/deepseek-ai/DeepSeek-V3.1 -m 'Say hi'
...
Hello from the Together stand-in.
[agents/agent-command] [agent] run ... ended with stopReason=stop
...
exit=0
== stand-in request log (the first GET is the driver's own fetch)
... GET /v1/models auth=bearer -> 200 (7 rows)
... GET /v1/models auth=bearer -> 200 (7 rows)
... POST /v1/chat/completions auth=bearer model=deepseek-ai/DeepSeek-V3.1 stream=true -> 200

Observed result:

  • Base: "count": 2, only the two built-in models. DeepSeek-V3.1 and Qwen3-235B-A22B-Instruct-2507-tput, listed with type: "chat", are missing. The turn is refused with "This model doesn't support chat; pick another model." (reason=format), and the stand-in received no POST.
  • This PR: "count": 4: the two built-in models plus DeepSeek-V3.1 and Qwen3-235B-A22B-Instruct-2507-tput, with their context windows from the rows. The language, embedding and image rows are not listed. The turn is sent as POST /v1/chat/completions and prints the stand-in's reply, exit 0.
  • Where it started, same stand-in and steps:
    • at 3bf446ef4475, the commit before the fix: hide non-chat models from chat selection #198288 merge: "count": 5 (the four chat rows and the language row Meta-Llama-3-8B), and the turn is sent and answered;
    • at 2110db5a1d1c, the merge: "count": 2 and "This model doesn't support chat; pick another model.".

Full captures:

Checks:

  • src/plugin-sdk/provider-catalog-live-runtime.test.ts "projects live chat metadata through both builders, caches it and falls back to static rows": the existing sunsetting-chat row now declares chat with type: "chat" instead of output: ["text"], so the case fails on base (sunsetting-chat is missing from the chat rows) and passes here. The output alias stays covered by the modalities.output rows in the same file and in provider-catalog-live-upstream.test.ts.
  • Consumer tests pass: 19 files, 244 tests. They are every src/plugin-sdk/provider-catalog-live-* test, src/agents/models-config.providers.implicit.discovery-scope.test.ts (the only test outside src/plugin-sdk that imports the changed module), and the Together, LiteLLM and oMLX plugin tests.
  • The OpenCode and OpenCode Go plugin tests pass: 11 files, 120 tests. Both plugins reach the changed check through projectProviderCatalogSnapshotRows.
  • pnpm tsgo:prod passes.
  • pnpm check:changed:
    • format, lint, typecheck and the repository guards pass;
    • two steps fail on what this PR does not touch: the Plugin SDK surface budget (public entrypoint and export counts over budget; this PR adds or removes no export) and the dead export scan (scripts/perf/transcript-facts-backfill-stress-preload.mjs, extensions/workboard/src/store-evidence.ts).
  • Size against base: production +1/−1 line, docs +3/−2, test lines net 0.
  • The broad suites run in this PR's CI.

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

File Tests Local wall Vitest Changed test CI
src/plugin-sdk/provider-catalog-live-runtime.test.ts 20 36.68 s 34.15 s 3 ms not yet run

Local review: autoreview (Codex gpt-6.1-sol, high), base 009fcd9b53b2 to head d9714956ae21, priority P0–P1, on the committed diff with the shared check, its runtime and snapshot callers and the Together plugin as source context. Result: scoped-clean, no findings.

Not covered:

  • The real Together API: no run reached api.together.xyz. The rows follow Together's own SDK type for /v1/models, but they come from the stand-in.
  • Together code rows are not read as chat and stay out of chat choices unless catalogued; none was served.
  • The language row (Meta-Llama-3-8B, a base model) was a chat choice before fix: hide non-chat models from chat selection #198288 and stays out, as since that merge.
  • Other providers whose rows carry type, task, model_type, modelType or pipeline_tag "chat" now get those rows admitted as chat; none besides Together was run. GitHub Copilot's capabilities.type: "chat" is nested and goes through its own projection, so this check does not see it.
  • Fireworks and Featherless also list models through the shared discovery without a projection. Fireworks' OpenAI-compatible row shape is not in its public reference, and Featherless declares chat through its capabilities=chat query, not the row; neither was changed or run.
  • 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.

Together's /v1/models rows declare chat models with type "chat". Since the
shared live admission made chat a positive fact for unknown ids, that kind
was not read as chat, so every listed Together chat model outside the
plugin catalog was hidden from model lists and refused as not chat.

Accept the chat kind next to llm, vlm and text-generation.
@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 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: blocked before merge.

What this changes

Recognize the declared model kind chat so Together models outside the built-in catalog remain listed and runnable.

Example: Together lists deepseek-ai/DeepSeek-V3.1 with type="chat".

  • Before: The model is hidden, and an agent turn fails before sending a completion request.
  • After: The model appears in the list, and the agent sends POST /v1/chat/completions.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with shipped-CLI boundary evidence and an existing regression test; external-service behavior remains represented by a schema-verified stand-in.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Inspected head-pinned Linux CLI captures exercise onboarding, refreshed discovery and a completed agent turn through the production transport against a TLS stand-in with independently verified Together row shapes; live Together availability is outside this proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Together users cannot discover or run supported chat models outside the plugin's two built-in entries.
Reason: The repair restores the documented affirmative-capability contract without adding options, parallel policy, or unrelated changes.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR fixes a current-main Together model-discovery regression with a minimal shared-parser change; no actionable correctness findings were identified.

Priority: P1
Reviewed head: d9714956ae21b0729dcfb131e8cad8c64a785aea

Before merge

  • Await maintainer action - Approve the GitHub Actions runs awaiting approval for this head so required CI can execute.

Findings

None.

Agent review details

How this fits together

The shared provider-catalog normalizer converts authenticated model-list rows into capability facts consumed by model publication and agent execution.

flowchart LR
  A[Together model endpoint] --> B[Shared discovery]
  B --> C[Capability normalizer]
  C --> D[Prepared model catalog]
  D --> E[Model lists]
  D --> F[Agent admission]
  F --> G[Chat completion transport]
Loading

Technical review

Best possible solution:

Land the existing shared-parser repair after required CI passes.

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

Current-main source establishes the failure for an unfamiliar type="chat" row, and the inspected contributor captures demonstrate it through the CLI; this read-only review ran no reproduction.

Is this the best way to solve the issue?

Recognizing the provider's explicit chat kind in the existing shared owner is the smallest complete fix and preserves rejection of negative capability declarations.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Shared chat classification and its documented/tested contract keeps the original intent (2110db5: Require declared chat/text support for unfamiliar models while retaining negative facts for saved selections.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 6b3a4ec adds src/plugin-sdk/provider-catalog-live-normalize.internal.ts:255 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b3a4ec511e6; files: src/plugin-sdk/provider-catalog-live-normalize.internal.ts)

PR surface

Source 0, Tests 0, Docs +1. Total +1 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 1 1 0
Docs 1 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 5 4 +1

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.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #198702
Summary: This PR supplies the focused repair for the open Together report; the merged LiteLLM repair handles a distinct provider field.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: A current-main regression hides Together chat models outside the built-in catalog and prevents agent turns on them.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • 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.

Reviewed November 14, 2026, 1:32 AM ET / 06:32 UTC.

@obviyus

obviyus commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the work here. We're closing this along with the author's other open PRs: the series splits one kind of change across many commands or call sites, and much of it is backed only by issues filed by the same author. Please open one issue per root cause with a reproduction from a real affected setup; maintainers will decide scope and fix it once at the shared owner.

@obviyus obviyus closed this Nov 16, 2026
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 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. size: XS status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Together chat models outside the built-in catalog are hidden from model lists and refused with "This model doesn't support chat"

2 participants