Skip to content

model-preference

const ModelPreferenceSchema: Struct<{ providerId: String; modelId: String; reasoning: optional<Literals<readonly ["minimal", "low", "medium", "high", "xhigh", "max"]>>; }>

Secret-free request to the host’s maintained model catalogue.


const parseModelPreference: (input, options?) => { providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; } | null

Decode the bounded client preference; availability remains model-owner policy.

unknown

ParseOptions

{ providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; } | null


const parseModelPreferenceJson: (input, options?) => { providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; } | null

Decode the serialized preference with the same maintained schema.

unknown

ParseOptions

{ providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; } | null


const modelPreferenceJsonSchema: JsonSchema

JSON Schema generated from Shiitake’s maintained model preference schema.

Re-exports ModelPreference