WordPress\AiClient\Providers\Models\SpeechGeneration\Contracts
SpeechGenerationOperationModelInterface::generateSpeechOperation
Creates a speech generation operation.
Метод класса: SpeechGenerationOperationModelInterface{}
Хуков нет.
Возвращает
GenerativeAiOperation. The initiated speech generation operation.
Использование
$SpeechGenerationOperationModelInterface = new SpeechGenerationOperationModelInterface(); $SpeechGenerationOperationModelInterface->generateSpeechOperation( $prompt ): GenerativeAiOperation;
- $prompt(list
) (обязательный) - Array of messages containing the speech generation prompt.
Список изменений
| С версии 0.1.0 | Введена. |
Код SpeechGenerationOperationModelInterface::generateSpeechOperation() SpeechGenerationOperationModelInterface::generateSpeechOperation WP 7.1.5
public function generateSpeechOperation(array $prompt): GenerativeAiOperation;