fix(subconscious): use Anthropic Messages API and correct model metadata#3062
Merged
Conversation
Collaborator
|
Follow-up in |
https://github.com/anomalyco/models.dev/blob/dev/providers/subconscious/models/subconscious/tim-qwen3.6-27b.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The file is now corrected and consistent with the approved GLM-5.2 entry for the same provider. Let me do a final review of the changes against the authoritative sources.
The corrections are complete and verified:
interleaved:{ field = "reasoning_content" }→true. The Thinking Mode docs show reasoning streams inline incontent(betweenthinktags) for the OpenAI-compatible endpoint, with streaming readingdelta.content. Thereasoning_contentfield form is for providers that split reasoning into a separate field, which Subconscious does not do.cost:{ input = 0, output = 0 }→{ input = 0.3, output = 3.0, cache_read = 0.15 }. The pricing page lists TIM-Qwen3.6 27B at cached $0.15 / input $0.30 / output $3.00 per 1M tokens.reasoning_options: added the API-syntax comment to the existingtoggleand added abudget_tokensoption. The Thinking Mode docs (usingsubconscious/tim-qwen3.6-27bas the example) document both the OpenAIchat_template_kwargs.enable_thinkingtoggle and the Anthropicthinking.budget_tokenscontrol.Leading source-comment block added per AGENTS.md convention (Subconscious has no sync module, so comments are preserved).
I did not run
bun validateor any shell/API commands.Summary
Issue #3061 ("wrong code") pointed at the pre-existing
providers/subconscious/models/subconscious/tim-qwen3.6-27b.toml. The discrepancy was flagged in the review notes of PR #3060 (which added GLM-5.2 to Subconscious): the TIM-Qwen3.6 27B entry had a zero cost that contradicted Subconscious's pricing page, and aninterleavedvalue that contradicted Subconscious's Thinking Mode documentation. This corrects both factual errors and completes thereasoning_optionsto match the provider's documented API surface, bringing the entry in line with the approved GLM-5.2 entry for the same provider.Changes
In
providers/subconscious/models/subconscious/tim-qwen3.6-27b.toml:interleaved:{ field = "reasoning_content" }→truecontent(betweenthinktags) on the OpenAI-compatible endpoint, not in a separatereasoning_contentfield.[cost]:input = 0,output = 0→input = 0.3,output = 3.0,cache_read = 0.15(USD per 1M tokens)cache_read(cached-token rate).[[reasoning_options]]: added the API-syntax comment to the existingtoggleand added a secondbudget_tokensoptiontoggle→# API: {"chat_template_kwargs": {"enable_thinking": true | false}}budget_tokens→# API: {"thinking": {"type": "enabled", "budget_tokens": <n>}}(bounds omitted; not documented)No other fields changed.
release_date,last_updated,limit,modalities, and capability booleans were left as-is — they were not flagged and could not be independently verified against provider docs.Evidence
subconscious/tim-qwen3.6-27bwith per-1M-token rates: cached $0.15, input $0.30, output $3.00. Establishes the correctedcostvalues.subconscious/tim-qwen3.6-27bas the example model and establishes three facts: (1) the OpenAI-format response carries reasoning inline incontentwrapped inthinktags, with streaming readingdelta.content(justifiesinterleaved = true); (2) the OpenAI format toggles thinking viachat_template_kwargs.enable_thinking(justifies thetoggleoption and its API comment); (3) the Anthropic Messages format usesthinking.type = "enabled"withthinking.budget_tokensto cap reasoning (justifies thebudget_tokensoption). The docs show only an examplebudget_tokensvalue of 2000 and no documented bounds, somin/maxare omitted.interleavedandcostdiscrepancies in this file as out-of-scope for that PR; the reviewer then opened issue wrong code. referencehttps://github.com/anomalyco/models.dev/blob/dev/providers/subconscious/models/subconscious/tim-qwen3.6-27b.toml#3061 referencing this file. The approved GLM-5.2 entry usesinterleaved = trueplus the sametoggle/budget_tokensreasoning-option pair, confirming the target structure.Validation
costvalues against the live pricing page (cached $0.15, input $0.30, output $3.00 per 1M tokens).interleaved = trueagainst the Thinking Mode docs: reasoning is inline incontentfor the OpenAI-compatible endpoint (thereasoning_contentseparate-field form does not apply to Subconscious).subconscious/tim-qwen3.6-27bas the example for both the OpenAI toggle and the Anthropicbudget_tokenscontrol.cache_readas an optional field and thatbudget_tokenspermits omittedmin/max.bun validateor any shell/API commands.Review notes
budget_tokensbounds are intentionally omitted: the docs show only an example value (2000) and publish no min/max, consistent with the audit guidance to omit unverified bounds.release_date/last_updated(2026-05-11) and thelimitblock (context/input8192,output5000) were not changed; the reviewed docs do not publish these values, so I could not verify them and the issue did not flag them.budget_tokensoption goes slightly beyond the two discrepancies explicitly named in the PR feat(subconscious): add GLM-5.2 #3060 notes (interleavedandcost), but is required for internal consistency: AGENTS.md treats completereasoning_optionsas a blocker for reasoning models, the Thinking Mode docs document the control for this exact model, and it matches the approved GLM-5.2 entry.Closes #3061
Automated by the issue fixer: https://github.com/anomalyco/models.dev/actions/runs/28795107369