Update static url

This commit is contained in:
hlohaus 2025-06-13 14:36:28 +02:00
parent e9179b87c2
commit a570ace2bc
4 changed files with 35 additions and 32 deletions

View file

@ -374,7 +374,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
if model == "gptimage":
n = 1
# Only remote images are supported
image = [item[0] for item in media if isinstance(item[0], str) and item[0].startswith("http")]
image = [item[0] for item in media if isinstance(item[0], str) and item[0].startswith("http")] if media else []
params = {
**params,
"image": ",".join(image) if image else "",