Skip to content

Error 500 acessing the API #20

@4Lajf

Description

@4Lajf

What happened?

When trying out the demo example the following error has occured

Traceback (most recent call last): File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 723, in __check_response response.raise_for_status() File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://bypass.churchless.tech/conversation The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\path\to\script\translate.py", line 6, in <module> response = llm('If there are 10 books in a room and I read 2, how many books are still in the room?') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\langchain\llms\base.py", line 802, in __call__ self.generate( File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\langchain\llms\base.py", line 598, in generate output = self._generate_helper( ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\langchain\llms\base.py", line 504, in _generate_helper raise e File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\langchain\llms\base.py", line 491, in _generate_helper self._generate( File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\langchain\llms\base.py", line 979, in _generate else self._call(prompt, stop=stop, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\gpt4_openai\__init__.py", line 35, in _call for data in self.chatbot.ask(prompt=prompt, File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 610, in ask yield from self.post_messages( File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 563, in post_messages yield from self.__send_request( File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 398, in __send_request self.__check_response(response) File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 91, in wrapper out = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\<USER>\AppData\Roaming\Python\Python311\site-packages\revChatGPT\V1.py", line 730, in __check_response raise error from ex revChatGPT.typings.Error: OpenAI: {"error":"Post \"https://tcr9i.chat.openai.com/fc/gt2/public_key/<KEY>\": http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=ENHANCE_YOUR_CALM, debug=\"\""} (code: 500) Please check that the input is correct, or you can resolve this issue by filing an issue Project URL: https://github.com/acheong08/ChatGPT 

Steps to reproduce the problem

Paste the demo code, replacing my_token with your own token and run it.

What should have happened?

GPT-4 should answer this question with "10"

Version where the problem happens

gpt4-openai-api==0.7.0

What Python version are you running this with?

Python 3.11.4

What is your operating system ?

Windows

Command Line Arguments

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions