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

Resolve #3496035 "Setup getsetupdata"

parent 947d8d51
No related branches found
No related tags found
1 merge request!7Resolve #3496035 "Setup getsetupdata"
Pipeline #378917 passed
......@@ -508,6 +508,24 @@ class OpenAiProvider extends AiProviderClientBase implements
return new EmbeddingsOutput($response['data'][0]['embedding'], $response, []);
}
/**
* {@inheritdoc}
*/
public function getSetupData(): array {
return [
'key_config_name' => 'api_key',
'default_models' => [
'chat' => 'gpt-4o',
'chat_with_image_vision' => 'gpt-4o',
'chat_with_complex_json' => 'gpt-4o',
'text_to_image' => 'dall-e-3',
'embeddings' => 'text-embedding-3-small',
'text_to_speech' => 'tts-1-hd',
'speech_to_text' => 'whisper-1',
],
];
}
/**
* {@inheritdoc}
*/
......
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