WordPress\AiClient\Providers\Models\ImageGeneration\Contracts

ImageGenerationOperationModelInterface{}interfaceWP 0.1.0

Interface for models that support asynchronous image generation operations.

Provides methods for initiating long-running image generation tasks.

Хуков нет.

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

$ImageGenerationOperationModelInterface = new ImageGenerationOperationModelInterface();
// use class methods

Методы

  1. public generateImageOperation(array $prompt)

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

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

Код ImageGenerationOperationModelInterface{} WP 7.0.4

interface ImageGenerationOperationModelInterface
{
    /**
     * Creates an image generation operation.
     *
     * @since 0.1.0
     *
     * @param list<Message> $prompt Array of messages containing the image generation prompt.
     * @return GenerativeAiOperation The initiated image generation operation.
     */
    public function generateImageOperation(array $prompt): GenerativeAiOperation;
}