model-preference
@fungi.computer/shiitake / model-preference
model-preference
Section titled “model-preference”Variables
Section titled “Variables”ModelPreferenceSchema
Section titled “ModelPreferenceSchema”
constModelPreferenceSchema:Struct<{providerId:filter<filter<typeofString$>>>>;modelId:filter<filter<typeofString$>>>>;reasoning:optional<Literal<["minimal","low","medium","high","xhigh","max"]>>; }>
Secret-free request to the host’s maintained model catalogue.
parseModelPreference
Section titled “parseModelPreference”
constparseModelPreference: (u,overrideOptions?) => {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
overrideOptions?
Section titled “overrideOptions?”ParseOptions
Returns
Section titled “Returns”{ providerId: string; modelId: string; reasoning?: "minimal" |
"low" | "medium" | "high" | "xhigh" | "max"; } | null
parseModelPreferenceJson
Section titled “parseModelPreferenceJson”
constparseModelPreferenceJson: (u,overrideOptions?) => {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
overrideOptions?
Section titled “overrideOptions?”ParseOptions
Returns
Section titled “Returns”{ providerId: string; modelId: string; reasoning?: "minimal" |
"low" | "medium" | "high" | "xhigh" | "max"; } | null
modelPreferenceJsonSchema
Section titled “modelPreferenceJsonSchema”
constmodelPreferenceJsonSchema:JsonSchema7Root
JSON Schema generated from Shiitake’s maintained model preference schema.
References
Section titled “References”ModelPreference
Section titled “ModelPreference”Re-exports ModelPreference