| 1234567891011121314151617181920212223242526272829303132333435363738 |
- import { ApiHandlerOptions } from "../../../shared/api" // Adjust path if needed
- import { EmbedderProvider } from "./manager"
- /**
- * Configuration state for the code indexing feature
- */
- export interface CodeIndexConfig {
- isEnabled: boolean
- isConfigured: boolean
- embedderProvider: EmbedderProvider
- modelId?: string
- openAiOptions?: ApiHandlerOptions
- ollamaOptions?: ApiHandlerOptions
- openAiCompatibleOptions?: { baseUrl: string; apiKey: string; modelDimension?: number }
- geminiOptions?: { apiKey: string }
- qdrantUrl?: string
- qdrantApiKey?: string
- searchMinScore?: number
- searchMaxResults?: number
- }
- /**
- * Snapshot of previous configuration used to determine if a restart is required
- */
- export type PreviousConfigSnapshot = {
- enabled: boolean
- configured: boolean
- embedderProvider: EmbedderProvider
- modelId?: string
- openAiKey?: string
- ollamaBaseUrl?: string
- openAiCompatibleBaseUrl?: string
- openAiCompatibleApiKey?: string
- openAiCompatibleModelDimension?: number
- geminiApiKey?: string
- qdrantUrl?: string
- qdrantApiKey?: string
- }
|