WordPress\AiClient\Providers\Models\TextGeneration\Contracts

TextGenerationModelInterface::generateTextResultpublicWP 0.1.0

Generates text from a prompt.

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

Хуков нет.

Возвращает

GenerativeAiResult. Result containing generated text.

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

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

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

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

Код TextGenerationModelInterface::generateTextResult() WP 7.0.4

public function generateTextResult(array $prompt): GenerativeAiResult;