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.43k stars 382 forks source link

Error on multiple files on multiple lines #146

Open xyzaf1 opened 1 year ago

xyzaf1 commented 1 year ago
⚠️INSTRUCTIONS: - Enter ONE "x" inside the brackets [x] to choose the answer - [x] Example - [ ] Example2

Have you already searched for your ISSUE among the resolved ones?

What version of Python do you have?

What version of operating system do you have?

What type of installation did you perform?

Desktop (please complete the following information):

Describe the bug

Traceback (most recent call last):
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 723, in __check_response
    response.raise_for_status()
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\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://bypass.churchless.tech/conversation

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

Traceback (most recent call last):
  File "C:\GPT-up1\AUTOGPT.py", line 301, in <module>
    agent.run([input("Enter the objective of the AI system: (Be realistic!) ")])
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\experimental\autonomous_agents\autogpt\agent.py", line 95, in run
    assistant_reply = self.chain.run(
                      ^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 293, in run
    return self(kwargs, callbacks=callbacks, tags=tags)[_output_key]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 166, in __call__
    raise e
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py", line 160, in __call__
    self._call(inputs, run_manager=run_manager)
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\llm.py", line 92, in _call
    response = self.generate([inputs], run_manager=run_manager)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\llm.py", line 102, in generate
    return self.llm.generate_prompt(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 140, in generate_prompt
    return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 206, in generate
    raise e
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 198, in generate
    self._generate(
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 500, in _generate
    else self._call(prompt, stop=stop, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\GPT-up1\FreeLLM\ChatGPTAPI.py", line 47, in _call
    response = self.chatbot(prompt)
               ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 338, in __call__
    self.generate([prompt], stop=stop, callbacks=callbacks, **kwargs)
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 206, in generate
    raise e
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 198, in generate
    self._generate(
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\llms\base.py", line 500, in _generate
    else self._call(prompt, stop=stop, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\gpt4_openai\__init__.py", line 35, in _call
    for data in self.chatbot.ask(prompt=prompt,
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 610, in ask
    yield from self.post_messages(
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 563, in post_messages
    yield from self.__send_request(
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 398, in __send_request
    self.__check_response(response)
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 91, in wrapper
    out = func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\master\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 730, in __check_response
    raise error from ex
revChatGPT.typings.Error: OpenAI: {"detail":{"message":"Could not parse your authentication token. Please try signing in again.","type":"invalid_request_error","param":null,"code":"invalid_jwt"}} (code: 401)
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT

Am I doing sth wrong?