mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 00:22:09 +03:00
Update You.py
This commit is contained in:
parent
70e942ad11
commit
536e85936e
@ -5,7 +5,7 @@ import json
|
||||
import base64
|
||||
import uuid
|
||||
try:
|
||||
from ..requests.curl_cffi import FormData
|
||||
from ..requests import FormData
|
||||
has_curl_cffi = True
|
||||
except ImportError:
|
||||
has_curl_cffi = False
|
||||
@ -55,8 +55,8 @@ class You(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
chat_mode: str = "default",
|
||||
**kwargs,
|
||||
) -> AsyncResult:
|
||||
if not has_curl_cffi:
|
||||
raise MissingRequirementsError('Install or update "curl_cffi" package | pip install -U curl_cffi')
|
||||
#if not has_curl_cffi:
|
||||
# raise MissingRequirementsError('Install or update "curl_cffi" package | pip install -U curl_cffi')
|
||||
if image is not None:
|
||||
chat_mode = "agent"
|
||||
elif not model or model == cls.default_model:
|
||||
|
Loading…
Reference in New Issue
Block a user