mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
Show only free providers by default
This commit is contained in:
parent
e53483d85b
commit
470b795418
14 changed files with 84 additions and 59 deletions
|
|
@ -123,7 +123,7 @@ async def copy_images(
|
|||
return f"/images/{url_filename}{'?url=' + quote(image) if add_url and not image.startswith('data:') else ''}"
|
||||
|
||||
except (ClientError, IOError, OSError) as e:
|
||||
debug.error(f"Image processing failed: {type(e).__name__}: {e}")
|
||||
debug.error(f"Image copying failed: {type(e).__name__}: {e}")
|
||||
if target_path and os.path.exists(target_path):
|
||||
os.unlink(target_path)
|
||||
return get_source_url(image, image)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue