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