fix: update Mistral codestral-embed dimension from 1024 to 1536

This commit is contained in:
Roo Code 2025-07-19 00:58:00 +00:00
parent be84157d29
commit 326085704e
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ import { TelemetryService } from "@roo-code/telemetry"
* with configuration for Mistral's embedding API.
*
* Supported models:
* - codestral-embed (dimension: 1024)
* - codestral-embed (dimension: 1536)
*/
export class MistralEmbedder implements IEmbedder {
private readonly openAICompatibleEmbedder: OpenAICompatibleEmbedder

View file

@ -51,7 +51,7 @@ export const EMBEDDING_MODEL_PROFILES: EmbeddingModelProfiles = {
"gemini-embedding-001": { dimension: 3072, scoreThreshold: 0.4 },
},
mistral: {
"codestral-embed": { dimension: 1024, scoreThreshold: 0.4 },
"codestral-embed": { dimension: 1536, scoreThreshold: 0.4 },
},
}