Model picked up automatically
So for now the model is not required
This commit is contained in:
parent
2c3f2ffd61
commit
e8798b3fe1
|
|
@ -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')) {
|
|||
];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue