Repository navigation
Conversation
Co-authored-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
|
Superseded by theopenco#3515 |
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.
Summary
Adds InclusionAI Ling-3.0-flash, a 124B-parameter native hybrid-reasoning MoE (5.1B active) model, with mappings on DeepInfra and NovitaAI.
References:
What changed
packages/models/src/models/inclusionai.ts(new):ling-3.0-flashmodel definition with DeepInfra + NovitaAI mappings.packages/models/src/models.ts: registers the new model and thechatTemplateThinkingKeymapping field.packages/actions/src/prepare-request-body.ts: the default OpenAI-compat request path now handleschatTemplateThinkingKey—reasoning_effort: "none"maps tochat_template_kwargs: { enable_thinking: false }, any other effort maps to{ enable_thinking: true }.packages/actions/src/prepare-request-body.spec.ts: unit tests for the Ling thinking translation on both providers.Pricing note
The DeepInfra rates ($0.045/M in, $0.10/M out, $0.008/M cached) are a promotional sale — not the standard list price. Noted in a comment on the DeepInfra mapping so the sale is called out; the rates will need updating when the promo ends.
Reasoning handling
Ling-3.0-flash is a hybrid reasoning model that thinks by default (per its HF card / vLLM chat template). Its only reasoning control is the chat-template flag
enable_thinking— it has no nativereasoning_efforttiers. So:reasoning: true,reasoningEfforts: ["none"], andchatTemplateThinkingKey: "enable_thinking".supportedParametersexcludesreasoning_effortso it is never forwarded to the provider (matching the DeepSeek V3.2-on-Novita precedent).Verification
pnpm build— full workspace build passes (17/17).packages/modelsandpackages/actionspass (401 tests, incl. 6 new Ling tests).pnpm format— clean./e2eafter review.🤖 Generated with Claude Code