From 536e85936ea13c5e75273a302ab7724187150a5f Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Sun, 7 Apr 2024 12:36:18 +0200 Subject: Update You.py --- g4f/Provider/You.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g4f/Provider') 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: -- cgit v1.2.3