Skip to content

Commit

Permalink
MBS-9360: Hardcore tts model param in case of OpenAI TTS via Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Sep 10, 2024
1 parent bfb151e commit b71e9be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/openaitts/classes/connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public function get_prompt_data(string $prompttext, array $requestoptions): arra
if (!$this->instance->azure_enabled()) {
// If azure is enabled, the model will be preconfigured in the azure resource, so we do not need to send it.
$data['model'] = $this->instance->get_model();
} else {
// OpenAI via Azure expects the model to be sent despite being preconfigured in the resource. So we hardcode "tts".
$data['model'] = 'tts';
}

return $data;
Expand Down

0 comments on commit b71e9be

Please sign in to comment.