MCPcopy
hub / github.com/opentrace/opentrace / loadModelChoice

Function loadModelChoice

ui/src/chat/storage.ts:57–59  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

55}
56
57export function loadModelChoice(provider: string): string | null {
58 return localStorage.getItem(MODEL_PREFIX + provider);
59}
60
61export function saveModelChoice(provider: string, model: string): void {
62 localStorage.setItem(MODEL_PREFIX + provider, model);

Callers 5

storage.test.tsFile · 0.90
ChatPanel.tsxFile · 0.90
switchProviderFunction · 0.90
handleKeyChangeFunction · 0.90
pickProviderKeepKeyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected