mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-03 15:53:09 -08:00
Add AsyncAuthedProvider in Copilot
Add orginal url to downloaded image Support ssl argument in StreamSession Report Provider and Errors in RetryProvider Support ssl argument in OpenaiTemplate Remove model duplication in OpenaiChat Disable ChatGpt provider and remove it from models.py Update slim requirements Support provider names as model name in Image generation Add model qwen-2.5-1m-demo to models.py
This commit is contained in:
parent
aef3d8dc66
commit
9524c3f327
20 changed files with 169 additions and 128 deletions
|
|
@ -277,7 +277,8 @@ class Backend_Api(Api):
|
|||
return Response(filter_markdown(response, do_filter_markdown), mimetype='text/plain')
|
||||
def cast_str():
|
||||
for chunk in response:
|
||||
yield str(chunk)
|
||||
if not isinstance(chunk, Exception):
|
||||
yield str(chunk)
|
||||
return Response(cast_str(), mimetype='text/plain')
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue