- Issue created by @prashant.c
Currently, the assignment of default values is hardcoded for the following operation types:
The 1.1.x
version of the AI module has some additional operation types:
These additional ones needs to be handled or would be better if we can have this list of operation type dynamic so that every time there's is modification to these could be handled automatically.
modules/contrib/ai_provider_openai/src/Form/OpenAiConfigForm.php
$this->aiProviderManager->defaultIfNone('chat', 'openai', 'gpt-4o');
$this->aiProviderManager->defaultIfNone('chat_with_image_vision', 'openai', 'gpt-4o');
$this->aiProviderManager->defaultIfNone('chat_with_complex_json', 'openai', 'gpt-4o');
$this->aiProviderManager->defaultIfNone('text_to_image', 'openai', 'dall-e-3');
$this->aiProviderManager->defaultIfNone('embeddings', 'openai', 'text-embedding-3-small');
$this->aiProviderManager->defaultIfNone('text_to_speech', 'openai', 'tts-1-hd');
$this->aiProviderManager->defaultIfNone('speech_to_text', 'openai', 'whisper-1');
$this->aiProviderManager->defaultIfNone('moderation', 'openai', 'omni-moderation-latest');
TBD
TBD
Active
1.1
Code