From 1eb7dc05e59433de149ec16d9b2fe19b3fa4b24b Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Fri, 26 Jan 2024 12:49:52 +0100 Subject: Fix: ChromeDriver only supports characters in the BMP Add set_cookies helper, Show last used model --- g4f/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/errors.py') diff --git a/g4f/errors.py b/g4f/errors.py index 66d41d4c..6032001b 100644 --- a/g4f/errors.py +++ b/g4f/errors.py @@ -31,7 +31,7 @@ class NestAsyncioError(Exception): class ModelNotSupportedError(Exception): pass -class MissingRequirementsError(Exception): +class MissingRequirementsError(ImportError): pass class AiohttpSocksError(MissingRequirementsError): -- cgit v1.2.3 From 47b50b4827121ec68d9e52a018b631a4a3f09625 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 27 Jan 2024 02:00:44 +0100 Subject: Fix PerplexityLabs Provider, Improve bypass_cloudflare helper --- g4f/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f/errors.py') diff --git a/g4f/errors.py b/g4f/errors.py index 6032001b..15bfafbd 100644 --- a/g4f/errors.py +++ b/g4f/errors.py @@ -31,10 +31,10 @@ class NestAsyncioError(Exception): class ModelNotSupportedError(Exception): pass -class MissingRequirementsError(ImportError): +class MissingRequirementsError(Exception): pass -class AiohttpSocksError(MissingRequirementsError): +class MissingAiohttpSocksError(MissingRequirementsError): pass class MissingAccessToken(Exception): -- cgit v1.2.3