Forum in maintenance, we will back soon 🙂
Problem running web_search.py
I get the following error when trying to run web_search.py from P.E course
File "c:\Users\evask\Desktop\AI-PROMPT-ENG-PRACTICES\Course_Files_Github\PE-Course-codes\web_search.py", line 10, in <module>
search_results = serp.search_google(query, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\evask\Desktop\AI-PROMPT-ENG-PRACTICES\Course_Files_Github\PE-Course-codes\serp.py", line 74, in search_google
raise Exception(
Exception: Error: API request failed with status code 401.
Thank you
A 401 error means you are not authorized to access. Did you supply an OpenAI API key?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@Hasan, is the API key for valueserp.com you have in serp.py file still valid?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor no, it is my API key. he should generate his own if he want to use the API
@admin okay, i'll give you a diff to apply for this when I raise an issue in GitHub.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack