i wand change embedding default from openai to mistral api
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
i wand change embedding default from openai to mistral api
Assistant
Based on the provided repository files, I can help guide you through changing the embedding from OpenAI to Mistral API. However, I notice that while there are files showing Mistral AI integration for chat completion (
mistral/index.ts), there isn't explicit code for Mistral embeddings in the provided files.Looking at the embeddings-related code:
- The embeddings interface is defined in
types/embeddings.ts:
typescriptexport interface EmbeddingsPayload { dimensions?: number; input: string | Array<string>; model: string; }- The Mistral integration is handled through
LobeOpenAICompatibleFactoryin , similar to OpenAI.
- The embeddings interface is defined in
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.