WordPress\AiClient\Providers\Models\TextGeneration\Contracts
TextGenerationOperationModelInterface::generateTextOperation
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() TextGenerationOperationModelInterface::generateTextOperation WP 7.1.5
public function generateTextOperation(array $prompt): GenerativeAiOperation;