Model picked up automatically

So for now the model is not required
This commit is contained in:
FusionPBX
2024-03-30 19:42:23 -06:00
committed by GitHub
parent 2c3f2ffd61
commit e8798b3fe1
2 changed files with 3 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ if (!class_exists('ai')) {
$object->set_filename($this->audio_filename);
$object->set_format($this->audio_format);
$object->set_voice($this->audio_voice);
$object->set_model($this->audio_model);
//$object->set_model($this->audio_model);
//$object->set_language($this->audio_language);
//$object->set_translate($this->audio_translate);
$object->set_message($this->audio_message);
@@ -186,4 +186,4 @@ if (!class_exists('ai')) {
}
}
?>
?>

View File

@@ -255,8 +255,6 @@ if (!class_exists('ai_openai')) {
public function set_model(string $model): void {
if (array_key_exists($model, $this->get_models())) {
$this->model = $model;
} else {
throw new \Exception('Model does not exist');
}
}
@@ -266,8 +264,7 @@ if (!class_exists('ai_openai')) {
];
}
}
}
?>
?>