BerriAI/litellm · error · ValueError

No operation name in Veo response: {response_data}

Error message

No operation name in Veo response: {response_data}

What it means

Error "No operation name in Veo response: {response_data}" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/gemini/videos/transformation.py:325

            "error": {...}
        }

        We return this as a VideoObject with:
        - id: operation name (used for polling)
        - status: "processing"
        - usage: includes duration_seconds and optional video_resolution for cost calculation
        """
        response_data: Final = raw_response.json()

        # Parse response using Pydantic model for type safety
        try:
            operation_response: Final = GeminiLongRunningOperationResponse(**response_data)
        except Exception as e:
            raise ValueError(f"Failed to parse operation response: {e}")

        operation_name: Final = operation_response.name
        if not operation_name:
            raise ValueError(f"No operation name in Veo response: {response_data}")

        if custom_llm_provider:
            video_id = encode_video_id_with_provider(operation_name, custom_llm_provider, model)
        else:
            video_id = operation_name

        video_obj: Final = VideoObject(
            id=video_id,
            object="video",
            status="processing",
            model=model,
        )

        usage_data: Final[dict[str, Any]] = {}
        if request_data:
            parameters: Final = request_data.get("parameters", {})
            duration: Final = parameters.get("durationSeconds") or DEFAULT_GOOGLE_VIDEO_DURATION_SECONDS
            if duration is not None:

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. The Veo response lacked an operation name; check the request and API status.

When it happens

Trigger: Thrown at litellm/llms/gemini/videos/transformation.py:325 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15). Data as JSON: /api/errors/a3a0a75dc5235487. Report an issue: GitHub.