WordPress\AiClient\Providers\Models\VideoGeneration\Contracts
VideoGenerationModelInterface{}
Interface for models that support video generation.
Provides synchronous methods for generating videos from prompts.
Хуков нет.
Использование
$VideoGenerationModelInterface = new VideoGenerationModelInterface(); // use class methods
Методы
Список изменений
| С версии 1.3.0 | Введена. |
Код VideoGenerationModelInterface{} VideoGenerationModelInterface{} WP 7.0.4
interface VideoGenerationModelInterface
{
/**
* Generates videos from a prompt.
*
* @since 1.3.0
*
* @param list<Message> $prompt Array of messages containing the video generation prompt.
* @return GenerativeAiResult Result containing generated videos.
*/
public function generateVideoResult(array $prompt): GenerativeAiResult;
}