summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/AItianhuSpace.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/Provider/AItianhuSpace.py')
-rw-r--r--g4f/Provider/AItianhuSpace.py2
1 files changed, 2 insertions, 0 deletions
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(