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

Function canRunSemanticIndex

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

Source from the content-addressed store, hash-verified

95
96/** 是否允许建立/检索索引:必须同时开启全局开关并完成模型配置。 */
97export function canRunSemanticIndex(config: SemanticIndexConfig): boolean {
98 return config.enabled && isSemanticIndexConfigured(config)
99}
100
101/** Local Ollama's OpenAI-compatible endpoint does not require authentication. */
102export function isKeylessSemanticIndexApiBaseUrl(baseUrl: string | undefined): boolean {

Callers 2

config.test.tsFile · 0.90
canRunMethod · 0.85

Calls 1

Tested by

no test coverage detected