Problem/Motivation
The definitions/api_defaults.yml file only defines the chat operation, but the Mistral provider supports three operations: chat, embeddings, and moderation.
Steps to reproduce
1. Install the Mistral provider module
2. Try to view available configuration for embeddings or moderation operations via the AI Explorer
3. No configuration examples are shown
Proposed resolution
Add embeddings and moderation sections to api_defaults.yml, following the pattern used by other providers (OpenAI, Ollama).
Remaining tasks
- Add embeddings section to api_defaults.yml
- Add moderation section to api_defaults.yml
Issue fork ai_provider_mistral-3570588
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 #3
petar_basic commentedAdded embeddings and moderation operation definitions to api_defaults.yml. The file previously only defined chat, but the provider supports all three operations.
Now getApiDefinition() returns complete API documentation for all supported operations:
Comment #6
fago