diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-07 12:36:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 12:36:18 +0200 |
commit | 536e85936ea13c5e75273a302ab7724187150a5f (patch) | |
tree | e41cfb1fe85061de7d81c248865f4a466c36692c /g4f/Provider/You.py | |
parent | Update You.py (diff) | |
download | gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar.gz gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar.bz2 gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar.lz gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar.xz gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.tar.zst gpt4free-536e85936ea13c5e75273a302ab7724187150a5f.zip |
Diffstat (limited to 'g4f/Provider/You.py')
-rw-r--r-- | g4f/Provider/You.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/You.py b/g4f/Provider/You.py index 0c7c2562..7ca928d8 100644 --- a/g4f/Provider/You.py +++ b/g4f/Provider/You.py @@ -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: |