Files
razv23andClaude 728d83611f Fix directory structure: move files from subfolder to root
Moved all files from comfyui-razv-wavespeed-custom/ subfolder directly to razv-wavespeed/ root directory to fix ComfyUI custom node loading. ComfyUI expects node files to be in the main directory, not in a subfolder.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 16:07:23 +02:00

32 lines
1.0 KiB
Python

from typing import Optional
from pydantic import Field
from ..utils import BaseRequest
# API JSON: google/veo3.json
class GoogleVeo3(BaseRequest):
"""
Request class for Google Veo3 Text-to-Video API
"""
prompt: str = Field(..., description="Text prompt for generation")
seed: Optional[int] = Field(default=-1, description=" The same seed and the same prompt given to the same version of the model will output the same image every time. ")
def build_payload(self) -> dict:
"""Builds the request payload dictionary."""
payload = {
"prompt": self.prompt,
"seed": self.seed
}
return self._remove_empty_fields(payload)
def get_api_path(self):
"""Gets the API path for the request. Corresponds to api_path in the interface configuration json"""
return "/api/v3/google/veo3"
def field_required(self):
return ['prompt']
def field_order(self):
"""Corresponds to x-order-properties in the interface configuration json"""
return ['prompt']