mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-15 12:50:45 +08:00
Check for exception in generate of G4F
This commit is contained in:
@@ -147,6 +147,8 @@ class Backend_Api(Api):
|
||||
limiter_check()
|
||||
if "images" in json_data:
|
||||
kwargs["images"] = json_data["images"]
|
||||
if "zerogpu_token" in json_data:
|
||||
kwargs["zerogpu_token"] = json_data["zerogpu_token"]
|
||||
kwargs = self._prepare_conversation_kwargs(json_data, kwargs)
|
||||
return self.app.response_class(
|
||||
self._create_response_stream(
|
||||
|
Reference in New Issue
Block a user