MCPcopy Index your code
hub / github.com/continuedev/continue / addAndSelectChatModel

Function addAndSelectChatModel

gui/src/util/test/config.ts:35–49  ·  view source on GitHub ↗
(
  store: EnhancedStore,
  ideMessenger: MockIdeMessenger,
  llmDesc: ModelDescription,
)

Source from the content-addressed store, hash-verified

33}
34
35export function addAndSelectChatModel(
36 store: EnhancedStore,
37 ideMessenger: MockIdeMessenger,
38 llmDesc: ModelDescription,
39) {
40 triggerConfigUpdate({
41 store,
42 ideMessenger,
43 editConfig(current) {
44 current.modelsByRole.chat.push(llmDesc);
45 current.selectedModelByRole.chat = llmDesc;
46 return current;
47 },
48 });
49}
50
51export function addAndSelectMockLlm(
52 store: EnhancedStore,

Callers 1

addAndSelectMockLlmFunction · 0.85

Calls 1

triggerConfigUpdateFunction · 0.85

Tested by

no test coverage detected