MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getDefaultAssistantSlot

Function getDefaultAssistantSlot

apps/desktop/main/ai/llm/index.ts:236–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234
235/** 获取默认助手 slot(含 configId + modelId) */
236export function getDefaultAssistantSlot(): import('./model-types').ModelSlot | null {
237 const store = loadConfigStore()
238 return resolveSlot(store.defaultAssistant, store.configs)
239}
240
241/** 获取默认助手模型配置(AI 对话、工具调用、SQL 助手、上下文压缩)。自动覆盖 config.model 为 slot.modelId */
242export function getDefaultAssistantConfig(): AIServiceConfig | null {

Callers

nothing calls this directly

Calls 2

loadConfigStoreFunction · 0.85
resolveSlotFunction · 0.70

Tested by

no test coverage detected