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

Function resolveModelId

packages/node-runtime/src/semantic-index/config.ts:83–88  ·  view source on GitHub ↗
(config: SemanticIndexConfig)

Source from the content-addressed store, hash-verified

81 * 当前配置的模型身份。作为 chunk 的 model_id 分区键与重建信号。
82 */
83export function resolveModelId(config: SemanticIndexConfig): string {
84 if (config.mode === 'api' && config.api) {
85 return `api:${config.api.baseUrl}#${config.api.model}`
86 }
87 return config.local.modelId
88}
89
90/** 用户是否已显式选择向量模型(本地有 modelId,或 API 已填 baseUrl+model)。 */
91export function isSemanticIndexConfigured(config: SemanticIndexConfig): boolean {

Callers 2

config.test.tsFile · 0.90
resolveModelIdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected