From 4a3b663ccd44735d77c372b5f629a728f0b90591 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Mon, 16 Oct 2023 00:47:10 +0100 Subject: ~ | remove non-working providers --- g4f/Provider/AItianhuSpace.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g4f/Provider/AItianhuSpace.py') diff --git a/g4f/Provider/AItianhuSpace.py b/g4f/Provider/AItianhuSpace.py index 7eb93d48..7811c9c8 100644 --- a/g4f/Provider/AItianhuSpace.py +++ b/g4f/Provider/AItianhuSpace.py @@ -37,6 +37,8 @@ class AItianhuSpace(AsyncGeneratorProvider): domain = f"{rand}.{domains[model]}" if not cookies: cookies = get_cookies(domain) + if not cookies: + raise RuntimeError(f"g4f.provider.{cls.__name__} requires cookies") url = f'https://{domain}' async with StreamSession( -- cgit v1.2.3