Python package that provides (unofficial) API access to the GPT-4 through chat.openai.com. Works with langchain. Supports browsing, DALL-E 3, plugins, continuing generation.
Hey I'm really interested in this project however it doesn't seem to be working for me.
Error Log
(base) blackhat@BacMook-Pro TerminalGPT % /opt/homebrew/bin/python3 /Users/blackhat/Documents/GitHub/TerminalGPT/GPT_GUI.py
Traceback (most recent call last):
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 723, in __check_response
response.raise_for_status()
File "/opt/homebrew/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://bypass.churchless.tech/conversation
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/blackhat/Documents/GitHub/TerminalGPT/GPT_GUI.py", line 9, in
response = llm('Hello')
^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 429, in call
self.generate(
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 281, in generate
output = self._generate_helper(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 225, in _generate_helper
raise e
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 212, in _generate_helper
self._generate(
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 606, in _generate
else self._call(prompt, stop=stop, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/gpt4_openai/init.py", line 35, in _call
for data in self.chatbot.ask(prompt=prompt,
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 610, in ask
yield from self.post_messages(
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 563, in post_messages
yield from self.send_request(
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 398, in __send_request
self.check_response(response)
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 91, in wrapper
out = func(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 730, in __check_response
raise error from ex
revChatGPT.typings.Error: OpenAI: <!DOCTYPE html>
Hi @TheManWhoLikesToCode ,
Are you using the latest library version? As we aren't using revChatGPT backend anymore, as it wasn't working. We switched back to selenium.
Hey I'm really interested in this project however it doesn't seem to be working for me.
Error Log
(base) blackhat@BacMook-Pro TerminalGPT % /opt/homebrew/bin/python3 /Users/blackhat/Documents/GitHub/TerminalGPT/GPT_GUI.py Traceback (most recent call last): File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 723, in __check_response response.raise_for_status() File "/opt/homebrew/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://bypass.churchless.tech/conversation
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/Users/blackhat/Documents/GitHub/TerminalGPT/GPT_GUI.py", line 9, in
response = llm('Hello')
^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 429, in call
self.generate(
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 281, in generate
output = self._generate_helper(
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 225, in _generate_helper
raise e
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 212, in _generate_helper
self._generate(
File "/opt/homebrew/lib/python3.11/site-packages/langchain/llms/base.py", line 606, in _generate
else self._call(prompt, stop=stop, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/gpt4_openai/init.py", line 35, in _call
for data in self.chatbot.ask(prompt=prompt,
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 610, in ask
yield from self.post_messages(
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 563, in post_messages
yield from self.send_request(
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 398, in __send_request
self.check_response(response)
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 91, in wrapper
out = func(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/blackhat/Library/Python/3.11/lib/python/site-packages/revChatGPT/V1.py", line 730, in __check_response
raise error from ex
revChatGPT.typings.Error: OpenAI: <!DOCTYPE html>
Bad gateway Error code 502
Browser
WorkingCloudflare
WorkingHost
ErrorWhat happened?
The web server reported a bad gateway error.
What can I do?
Please try again in a few minutes.
Cloudflare Ray ID: 81185bce9cb7115f • Your IP: 94.140.9.241 • Performance & security by Cloudflare
(code: 502) Please check that the input is correct, or you can resolve this issue by filing an issue Project URL: https://github.com/acheong08/ChatGPT