MCPcopy Create free account
hub / github.com/anomalyco/models.dev / isReasoningModel

Function isReasoningModel

packages/core/script/generate-friendli.ts:76–89  ·  view source on GitHub ↗
(modelId: string)

Source from the content-addressed store, hash-verified

74
75// TODO: Replace with functionality.parse_reasoning from API when available
76function isReasoningModel(modelId: string): boolean {
77 const nonReasoningPatterns = [
78 /qwen3.*instruct/i,
79 ];
80
81 for (const pattern of nonReasoningPatterns) {
82 if (pattern.test(modelId)) {
83 return false;
84 }
85 }
86
87 // Everything else is reasoning or hybrid reasoning
88 return true;
89}
90
91function formatNumber(n: number): string {
92 if (n >= 1000) {

Callers 1

mergeModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected