WordPress\AiClient\Providers\Models\TextGeneration\Contracts

TextGenerationOperationModelInterface::generateTextOperation │ public │ WP 0.1.0

Creates a text generation operation.

Метод класса: TextGenerationOperationModelInterface{}

Хуков нет.

Возвращает

GenerativeAiOperation. The initiated text generation operation.

Использование

$TextGenerationOperationModelInterface = new TextGenerationOperationModelInterface();
$TextGenerationOperationModelInterface->generateTextOperation( $prompt ): GenerativeAiOperation;
$prompt(list) (обязательный)
Array of messages containing the text generation prompt.

Список изменений

С версии 0.1.0 Введена.

Код TextGenerationOperationModelInterface::generateTextOperation() WP 7.1.5

public function generateTextOperation(array $prompt): GenerativeAiOperation;