AJaySi / AI-Writer

ALwrity - All in One AI Content Platform. Contextual AI Content generation for Website, Social media & Ad copywriting. Prevents AI hallucinations, Web Researched factual, SEO optimized content. Get blog Images. Create your AI Agents Content team. Generate content with RAG, Local documents, web urls, PDFs. Open Source AI writer. (WIP)
https://alwrity.com
279 stars 91 forks source link

Open ai Turbo 3.5 is not working #3

Closed uniqueumesh closed 8 months ago

uniqueumesh commented 8 months ago

ERROR|google_serp_search.py:312:save_in_file| Error occurred while writing to the file: [Errno 2] No such file or directory: '/home/runner/AI-Blog-Writer/workspace/web_research_reports/Top_5_Scuba_Diving_in_India_2024-03-06_12-09-35' ERROR|google_serp_search.py:312:save_in_file| Error occurred while writing to the file: [Errno 2] No such file or directory: '/home/runner/AI-Blog-Writer/workspace/web_research_reports/Top_5_Scuba_Diving_in_India_2024-03-06_12-09-35' INFO|blog_from_google_serp.py:36:write_blog_google_serp| Generating blog and FAQs from web search result. INFO|blog_from_google_serp.py:46:write_blog_google_serp| Calling OpenAI LLM. 2024-03-06 12:09:47,832-INFO-_client-1013-HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 401 Unauthorized" 2024-03-06 12:09:47,833-ERROR-openai_chat_completion-53-OpenAI API Error: Error code: 401 - {'error': {'message': 'Incorrect API key provided: UhQHYK5O****vaM6. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}

I am getting this error. Thank you for your help.

AJaySi commented 8 months ago

Thank you for reporting. I was only testing on gemini. I have added support for gpt-3.5-turbo-0125. Will provide an option to choose AI models soon.

Checkout latest code.