mirror of https://github.com/xtekky/gpt4free.git
corrected error message
This commit is contained in:
parent
670b2b664e
commit
89cbaf7b61
|
@ -54,7 +54,7 @@ class PhindResponse:
|
|||
class Search:
|
||||
def create(prompt: str, actualSearch: bool = True, language: str = 'en') -> dict: # None = no search
|
||||
if user_agent == '' or cf_clearance == '':
|
||||
raise ValueError('user_agent must be set, refer to documentation')
|
||||
raise ValueError('user_agent and cf_clearance must be set, refer to documentation')
|
||||
|
||||
if not actualSearch:
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue