mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-24 11:34:02 +03:00
Added back list_ignored_providers parameter to ChatCompletion.create method in api.
This commit is contained in:
parent
82f3cdc762
commit
7b26e20db0
@ -82,7 +82,11 @@ class Api:
|
||||
messages = item_data.get('messages')
|
||||
|
||||
try:
|
||||
response = g4f.ChatCompletion.create(model=model, stream=stream, messages=messages)
|
||||
response = g4f.ChatCompletion.create(
|
||||
model=model,
|
||||
stream=stream,
|
||||
messages=messages,
|
||||
list_ignored_providers=self.list_ignored_providers)
|
||||
except Exception as e:
|
||||
logging.exception(e)
|
||||
return Response(content=json.dumps({"error": "An error occurred while generating the response."}, indent=4), media_type="application/json")
|
||||
|
Loading…
Reference in New Issue
Block a user