Problem/Motivation
Embeddings is a key operation type used for semantic search and RAG applications. Tests ensure the provider correctly handles embedding requests.
Proposed resolution
Create kernel tests that mock the MistralClient to test embeddings functionality
Test coverage:
- testGetConfiguredModelsEmbeddings() - Verify mistral-embed model is returned
- testEmbeddings() - Embeddings with EmbeddingsInput object
- testEmbeddingsWithStringInput() - Embeddings with plain string
Issue fork ai_provider_mistral-3567016
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
marcus_johansson commentedComment #3
arianraeesi commentedComment #4
petar_basic commentedAdded kernel tests for the Embeddings operation covering:
- Embeddings with string input
- Embeddings with EmbeddingsInput object (verifies input normalization)
- getSupportedOperationTypes() includes 'embeddings'
Comment #8
fagothx, MR looks good - merged!
Comment #10
arianraeesi commented