mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 10:40:43 -08:00
Update static url
This commit is contained in:
parent
e9179b87c2
commit
a570ace2bc
4 changed files with 35 additions and 32 deletions
|
|
@ -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 "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue