xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
59.16k stars 13.18k forks source link

500 Internal error in GUI, when using gpt-4 #1246

Closed kolesto65 closed 7 months ago

kolesto65 commented 7 months ago

Getting this error: <!doctype html> 500 Internal Server Error <h 1>Internal Server Error</h 1> < p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</ p>

Tried to use IPs from two different countries, but with no success.

image

traceback: '<!doctype html>\n\n500 Internal Server Error\n<h 1>Internal Server Error</h 1>\n< p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</ p>\n '}, {'role': 'user', 'content': 'type 1'}] Bing 127.0.0.1 - - [13/Nov/2023 17:56:21] "POST /backend-api/v2/conversation HTTP/1.1" 500 - Error on request: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 362, in run_wsgi execute(self.server.app) File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 325, in execute for data in application_iter: File "/usr/local/lib/python3.8/dist-packages/werkzeug/wsgi.py", line 256, in next return self._next() File "/usr/local/lib/python3.8/dist-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded for item in iterable: File "/usr/local/lib/python3.8/dist-packages/g4f/gui/server/backend.py", line 58, in stream yield from g4f.ChatCompletion.create( File "/usr/local/lib/python3.8/dist-packages/g4f/Provider/base_provider.py", line 112, in create_completion yield loop.run_until_complete(gen.anext()) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/usr/local/lib/python3.8/dist-packages/g4f/Provider/Bing.py", line 448, in stream_generate await wss.send_str(create_message(conversation, prompt, tone, context)) File "/usr/local/lib/python3.8/dist-packages/g4f/Provider/Bing.py", line 393, in create_message 'message': Defaults.location | { TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

github-actions[bot] commented 7 months ago

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] commented 7 months ago

Closing due to inactivity.