IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.44k stars 384 forks source link

getting error code 401 #20

Closed shingojas closed 1 year ago

shingojas commented 1 year ago

Hi good day

getting this issue when trying to run Autogpt.py

kindly assist

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. Traceback (most recent call last): File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 668, in __check_response response.raise_for_status() File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://ai.fakeopen.com/api/conversation

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "D:\Ai\Autogpt\Free-AUTO-GPT-with-NO-API\AUTOGPT.py", line 197, in agent.run([input("Enter the objective of the AI system: (Be realistic!) ")]) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\experimental\autonomous_agents\autogpt\agent.py", line 91, in run assistant_reply = self.chain.run( File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 216, in run return self(kwargs)[self.output_keys[0]] File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 116, in call raise e File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\base.py", line 113, in call outputs = self._call(inputs) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\llm.py", line 57, in _call return self.apply([inputs])[0] File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\llm.py", line 118, in apply response = self.generate(input_list) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\chains\llm.py", line 62, in generate return self.llm.generate_prompt(prompts, stop) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\llms\base.py", line 107, in generate_prompt return self.generate(prompt_strings, stop=stop) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\llms\base.py", line 140, in generate raise e File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\llms\base.py", line 137, in generate output = self._generate(prompts, stop=stop) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\llms\base.py", line 324, in _generate text = self._call(prompt, stop=stop) File "D:\Ai\Autogpt\Free-AUTO-GPT-with-NO-API\FreeLLM\ChatGPTAPI.py", line 50, in _call for data in self.chatbot.ask( prompt , conversation_id=self.conversation, parent_id=self.prev_message): File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 556, in ask yield from self.post_messages( File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 510, in post_messages yield from self.send_request( File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 365, in __send_request self.check_response(response) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 66, in wrapper out = func(*args, **kwargs) File "C:\Users\Noel\AppData\Local\Programs\Python\Python310\lib\site-packages\revChatGPT\V1.py", line 675, in __check_response raise error from ex revChatGPT.typings.Error: OpenAI: {"detail":{"message":"Incorrect API key provided: accessTo***DrBw. You can find your API key at https://platform.openai.com/account/api-keys.","type":"invalid_request_error","param":null,"code":"invalid_api_key"}} (code: 401)