mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-03 07:42:30 -08:00
parent
b1dbf66587
commit
3982f39424
50 changed files with 416 additions and 429 deletions
|
|
@ -52,7 +52,7 @@ async def test_async(provider: type[BaseProvider]):
|
|||
response = await provider.create_async(model=model, messages=messages)
|
||||
else:
|
||||
response = provider.create_completion(model=model, messages=messages, stream=False)
|
||||
return True if response else False
|
||||
return bool(response)
|
||||
except Exception as e:
|
||||
if logging:
|
||||
print(f"{provider.__name__}: {e.__class__.__name__}: {e}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue