summaryrefslogtreecommitdiffstats
path: root/phind
diff options
context:
space:
mode:
authorJohannes <johannesr@viken.no>2023-04-26 08:00:06 +0200
committerJohannes <johannesr@viken.no>2023-04-26 08:00:06 +0200
commit670b2b664ef5c3149de97e08b5c14bd015e74aff (patch)
tree8e660cc9b16e2cb936108a15bc8516882091d53d /phind
parentannouncement (diff)
downloadgpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar.gz
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar.bz2
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar.lz
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar.xz
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.tar.zst
gpt4free-670b2b664ef5c3149de97e08b5c14bd015e74aff.zip
Diffstat (limited to 'phind')
-rw-r--r--phind/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/phind/__init__.py b/phind/__init__.py
index 9b1650e0..b4e518bc 100644
--- a/phind/__init__.py
+++ b/phind/__init__.py
@@ -53,7 +53,7 @@ class PhindResponse:
class Search:
def create(prompt: str, actualSearch: bool = True, language: str = 'en') -> dict: # None = no search
- if user_agent == '':
+ if user_agent == '' or cf_clearance == '':
raise ValueError('user_agent must be set, refer to documentation')
if not actualSearch:
@@ -281,4 +281,4 @@ class StreamingCompletion:
@staticmethod
def handle_stream_response(response):
- StreamingCompletion.message_queue.put(response) \ No newline at end of file
+ StreamingCompletion.message_queue.put(response)