Free-Auto-GPT icon indicating copy to clipboard operation
Free-Auto-GPT copied to clipboard

Error on multiple files on multiple lines

Open xyzaf1 opened this issue 1 year ago • 0 comments

⚠️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?

  • [x] Yes, new issue
  • [ ] Yes, but the solution not work for me
  • [ ] No

What version of Python do you have?

  • [x] Last, Python > 3.11
  • [ ] Python >= 3.8
  • [ ] PIs you have Python<3.8 pease install last version of python

What version of operating system do you have?

  • [x] Windows
  • [x] Linux/Ububtu
  • [ ] Mac/OSX

What type of installation did you perform?

  • [ ] pip3 install -r requirements.txt
  • [x] python3 -m pip install -r requirements.txt
  • [ ] Anaconda
  • [ ] Container on VS

Desktop (please complete the following information):

  • Browser [Chrome] :
  • Version [112] :

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?

xyzaf1 avatar Jun 28 '23 16:06 xyzaf1