Skip to content
Snippets Groups Projects
Commit d018fa4c authored by Marcus Johansson's avatar Marcus Johansson Committed by Marcus Johansson
Browse files

Issue #3488364: Add moderation as default moderation

parent 3021edaf
No related branches found
No related tags found
1 merge request!13Issue #3488364: Add moderation as default moderation
Pipeline #383869 passed
......@@ -133,6 +133,7 @@ class OpenAiConfigForm extends ConfigFormBase {
$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', 'text-moderation-latest');
parent::submitForm($form, $form_state);
}
......
......@@ -520,6 +520,7 @@ class OpenAiProvider extends AiProviderClientBase implements
'chat_with_complex_json' => 'gpt-4o',
'text_to_image' => 'dall-e-3',
'embeddings' => 'text-embedding-3-small',
'moderation' => 'text-moderation-latest',
'text_to_speech' => 'tts-1-hd',
'speech_to_text' => 'whisper-1',
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment