kontext-engine 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -135,9 +135,9 @@ declare function prepareChunkText(filePath: string, parent: string | null, text:
135
135
  /** Create a local embedder using Xenova/all-MiniLM-L6-v2 (384 dims, ONNX Runtime). */
136
136
  declare function createLocalEmbedder(): Promise<Embedder>;
137
137
  /** Create an embedder using Voyage AI's code embedding API. */
138
- declare function createVoyageEmbedder(apiKey: string): Embedder;
138
+ declare function createVoyageEmbedder(apiKey: string, dimensions?: number): Embedder;
139
139
  /** Create an embedder using OpenAI's text-embedding-3-small API. */
140
- declare function createOpenAIEmbedder(apiKey: string): Embedder;
140
+ declare function createOpenAIEmbedder(apiKey: string, dimensions?: number): Embedder;
141
141
 
142
142
  /** Project-level configuration stored in .ctx/config.json. */
143
143
  interface KontextConfig {
@@ -406,6 +406,7 @@ interface AskOutput {
406
406
  declare function runAsk(projectPath: string, query: string, options: AskOptions): Promise<AskOutput>;
407
407
 
408
408
  interface ProjectConfig {
409
+ provider: string;
409
410
  model: string;
410
411
  dimensions: number;
411
412
  }