@@ -3,7 +3,7 @@ import * as z from 'zod/v4';
33import { LLM_IF_HOTFIX_NoTemperature , LLM_IF_HOTFIX_StripImages , LLM_IF_OAI_Chat , LLM_IF_OAI_Fn , LLM_IF_OAI_Json , LLM_IF_OAI_PromptCaching , LLM_IF_OAI_Reasoning , LLM_IF_OAI_Vision } from '~/common/stores/llms/llms.types' ;
44
55import type { ModelDescriptionSchema } from '../../llm.server.types' ;
6- import { llmsDefineModels , fromManualMapping , KnownModel } from '../../models.mappings' ;
6+ import { llmsDefineModels , fromManualMapping , KnownModel , llmsLabelUncurated } from '../../models.mappings' ;
77
88// --- Moonshot Model ID inference (auto-derived from _knownMoonshotModels) ---
99export type LlmsMoonshotModelId = typeof _knownMoonshotModels [ number ] [ 'idPrefix' ] ;
@@ -335,9 +335,10 @@ export function moonshotModelToModelDescription(_model: unknown): ModelDescripti
335335 const description = fromManualMapping ( _knownMoonshotModels , model . id , model . created , undefined , {
336336 // NOTE: default: let us know if any of these show up
337337 idPrefix : model . id ,
338- label : model . id . replaceAll ( / [ _ - ] / g, ' ' ) ,
339- description : 'Unknown Moonshot Model' ,
340- contextWindow : model . context_length || 128000 ,
338+ label : llmsLabelUncurated ( model . id . replaceAll ( / [ _ - ] / g, ' ' ) ) ,
339+ description : 'New Moonshot arrival, not yet curated - capabilities unverified.' ,
340+ contextWindow : model . context_length || null , // API value when present; null (not a guess) otherwise
341+ // optimistic capability leeway for 0-day arrivals; rein in when cataloged
341342 interfaces : [ LLM_IF_OAI_Chat , LLM_IF_OAI_Fn , LLM_IF_OAI_Json , LLM_IF_OAI_PromptCaching ] ,
342343 hidden : model . id . startsWith ( 'moonshot-' ) , // hide older
343344 } ) ;
0 commit comments