diff --git a/phind/__init__.py b/phind/__init__.py index 9b1650e..b4e518b 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)