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

Method getModelParams

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

Source from the content-addressed store, hash-verified

611 // ===========================================================================
612
613 public getModelParams(modelName: string): Partial<InferenceParams> {
614 try {
615 const stored = localStorage.getItem(`${MODEL_PARAMS_PREFIX}${modelName}`);
616 if (stored) return JSON.parse(stored);
617 } catch {}
618 return {};
619 }
620
621 public setModelParams(modelName: string, params: Partial<InferenceParams>): void {
622 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