Repository navigation
fix(providers): Together chat models are hidden from model lists and refused as not chat - #198703
masatohoshino wants to merge 1 commit into
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesRecognize the declared model kind Example: Together lists deepseek-ai/DeepSeek-V3.1 with type="chat".
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests 0, Docs +1. Total +1 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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 clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 1:32 AM ET / 06:32 UTC. |
|
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. |
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 --refreshlists onlyzai-org/GLM-5.2andmeta-llama/Llama-3.3-70B-Instruct-Turbo, though Together's/v1/modelslists more models withtype: "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/modelsrows, the commit before that merge lists those models and sends the turn.User Impact
User impact: Together models that
/v1/modelslists withtype: "chat"are back in model lists and run again. Embedding, image and other non-text models, andlanguage(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/modelsrow astype(Together's own SDK types it as one ofchat,language,code,image,embedding,moderation,rerank,audio,transcribe,video). The shared check,readLiveModelChatCapability, already readstypeas the row's kind and rejects the non-text kinds, but it accepts onlyllm,vlm,text-generationand<modality>-text-to-textas chat, sotype: "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'sllm/vlmwere added there by #198288), andsrc/plugins/AGENTS.mdputs listing gaps in that one rule. A projection, as #198582 added for LiteLLM, translates a field the shared check does not read (LiteLLM'smode);typeis one it reads. The model catalog docs now name Together'schattype among the kinds that qualify chat rows.Any provider whose rows carry
type,task,model_type,modelTypeorpipeline_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
main009fcd9b53b2).Setup:
node scripts/run-node.mjs ...), run in anode:24-slimcontainer on Linux x64 with no route out. Each run has its ownOPENCLAW_STATE_DIR.api.together.xyz, not the real Together server. No Together key was available, and the Together plugin has no base URL override, soapi.together.xyzresolves to a second container that serves/v1/modelsrows in the shape of Together's own SDKModelObjectand answers chat completions with a fixed reply. It logs every request. The same stand-in served every run.GET /v1/models, one row per line (pricing,link,licenseandcreatedshortened to...):0. the driver fetches
GET /v1/modelsonce itself (plainnodefetch), to print the rows above; it is the firstGETin each stand-in log below, not an OpenClaw request;openclaw onboard --non-interactive --accept-risk --skip-health --mode local --auth-choice together-api-key --together-api-key <synthetic key>;openclaw models list --provider together --refresh --json;openclaw agent --local --session-id <id> --model together/deepseek-ai/DeepSeek-V3.1 -m "Say hi"....below and in the captures:[state/agent-db]agent-database receipts;node --trace-warnings ..." line;openclaw configure --section web..." line.Before (base
main009fcd9b53b2)....marks omitted lines:After (this PR), with the same omission marks; timestamps and the run id are shortened to
...:Observed result:
"count": 2, only the two built-in models.DeepSeek-V3.1andQwen3-235B-A22B-Instruct-2507-tput, listed withtype: "chat", are missing. The turn is refused with "This model doesn't support chat; pick another model." (reason=format), and the stand-in received noPOST."count": 4: the two built-in models plusDeepSeek-V3.1andQwen3-235B-A22B-Instruct-2507-tput, with their context windows from the rows. Thelanguage,embeddingandimagerows are not listed. The turn is sent asPOST /v1/chat/completionsand prints the stand-in's reply, exit 0.3bf446ef4475, the commit before the fix: hide non-chat models from chat selection #198288 merge:"count": 5(the fourchatrows and thelanguagerowMeta-Llama-3-8B), and the turn is sent and answered;2110db5a1d1c, the merge:"count": 2and "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 existingsunsetting-chatrow now declares chat withtype: "chat"instead ofoutput: ["text"], so the case fails on base (sunsetting-chatis missing from the chat rows) and passes here. Theoutputalias stays covered by themodalities.outputrows in the same file and inprovider-catalog-live-upstream.test.ts.src/plugin-sdk/provider-catalog-live-*test,src/agents/models-config.providers.implicit.discovery-scope.test.ts(the only test outsidesrc/plugin-sdkthat imports the changed module), and the Together, LiteLLM and oMLX plugin tests.projectProviderCatalogSnapshotRows.pnpm tsgo:prodpasses.pnpm check:changed:scripts/perf/transcript-facts-backfill-stress-preload.mjs,extensions/workboard/src/store-evidence.ts).Test cost,
pnpm test <file> --maxWorkers=1, local:src/plugin-sdk/provider-catalog-live-runtime.test.tsLocal review: autoreview (Codex gpt-6.1-sol, high), base
009fcd9b53b2to headd9714956ae21, 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:
api.together.xyz. The rows follow Together's own SDK type for/v1/models, but they come from the stand-in.coderows are not read as chat and stay out of chat choices unless catalogued; none was served.languagerow (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.type,task,model_type,modelTypeorpipeline_tag"chat"now get those rows admitted as chat; none besides Together was run. GitHub Copilot'scapabilities.type: "chat"is nested and goes through its own projection, so this check does not see it.capabilities=chatquery, not the row; neither was changed or run.