MCPcopy Create free account
hub / github.com/Roy3838/Observer / getModelParams

Method getModelParams

app/src/utils/ModelManager.ts:643–649  ·  view source on GitHub ↗
(modelName: string)

Source from the content-addressed store, hash-verified

641 // ===========================================================================
642
643 public getModelParams(modelName: string): Partial<InferenceParams> {
644 try {
645 const stored = localStorage.getItem(`${MODEL_PARAMS_PREFIX}${modelName}`);
646 if (stored) return JSON.parse(stored);
647 } catch {}
648 return {};
649 }
650
651 public setModelParams(modelName: string, params: Partial<InferenceParams>): void {
652 const cleaned: Partial<InferenceParams> = {};

Callers 5

hasModelParamsMethod · 0.95
sendPromptMethod · 0.95
sendMessagesMethod · 0.95
sendToolMessagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected