Fix generate video

This commit is contained in:
hlohaus 2025-07-12 09:18:20 +02:00
parent c50f2f47ff
commit 7f6b528e44

View file

@ -97,7 +97,7 @@ class Video(AsyncGeneratorProvider, ProviderModelMixin):
debug.error(f"Error getting nodriver:", e) debug.error(f"Error getting nodriver:", e)
async with ClientSession() as session: async with ClientSession() as session:
yield Reasoning(label="Generating") yield Reasoning(label="Generating")
async with session.post(cls.api_url + quote(prompt)) as response: async with session.get(cls.api_url + quote(prompt)) as response:
if not response.ok: if not response.ok:
debug.error(f"Failed to generate Video: {response.status}") debug.error(f"Failed to generate Video: {response.status}")
else: else: