Skip to content

get_video_content raise error because of the mismatch Content-Type #175

@ningmengyeguoyangleduo

Description

@ningmengyeguoyangleduo

in openrouter/video_generation.py

if utils.match_response(http_res, "200", "application/octet-stream"):
return http_res

but the model like seedance 2.0 returns content with type "video/mp4"

she would go to there then raise error

raise errors.OpenRouterDefaultError(
"Unexpected response received", http_res, http_res_text
)

like that

Unexpected response received: Status 200 Content-Type video/mp4. Body: \x00\x00\x00 ftypisom\x00\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions