mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 11:13:50 +00:00
Model picked up automatically
So for now the model is not required
This commit is contained in:
@@ -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')) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -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')) {
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user