model-preference
Variables
Section titled “Variables”ModelPreferenceSchema
Section titled “ModelPreferenceSchema”
constModelPreferenceSchema: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.
parseModelPreference
Section titled “parseModelPreference”
constparseModelPreference: (input,options?) => {providerId:string;modelId:string;reasoning?:"minimal"|"low"|"medium"|"high"|"xhigh"|"max"; } |null
Decode the bounded client preference; availability remains model-owner policy.
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”ParseOptions
Returns
Section titled “Returns”{ providerId: string; modelId: string; reasoning?: "minimal" |
"low" | "medium" | "high" | "xhigh" | "max"; } | null
parseModelPreferenceJson
Section titled “parseModelPreferenceJson”
constparseModelPreferenceJson: (input,options?) => {providerId:string;modelId:string;reasoning?:"minimal"|"low"|"medium"|"high"|"xhigh"|"max"; } |null
Decode the serialized preference with the same maintained schema.
Parameters
Section titled “Parameters”unknown
options?
Section titled “options?”ParseOptions
Returns
Section titled “Returns”{ providerId: string; modelId: string; reasoning?: "minimal" |
"low" | "medium" | "high" | "xhigh" | "max"; } | null
modelPreferenceJsonSchema
Section titled “modelPreferenceJsonSchema”
constmodelPreferenceJsonSchema:JsonSchema
JSON Schema generated from Shiitake’s maintained model preference schema.
References
Section titled “References”ModelPreference
Section titled “ModelPreference”Re-exports ModelPreference