szczyglis-dev / py-gpt

Desktop AI Assistant powered by o1, GPT-4, GPT-4 Vision, Gemini, Claude, Llama 3, Bielik, DALL-E, Langchain, Llama-index, chat, vision, voice control, image generation and analysis, agents, command execution, file upload/download, speech synthesis and recognition, access to Web, memory, presets, assistants, plugins, and more. Linux, Windows, Mac.
https://pygpt.net
Other
614 stars 116 forks source link

How to setup the program to work with proxy? #68

Closed DarkC343 closed 1 week ago

DarkC343 commented 4 months ago

Exception: Error code: 403 - {'error': {'code': 'unsupported_country_region_territory', 'message': 'Country, region, or territory not supported', 'param': None, 'type': 'request_forbidden'}} Type: PermissionDeniedErrorMessage: Error code: 403 - {'error': {'code': 'unsupported_country_region_territory', 'message': 'Country, region, or territory not supported', 'param': None, 'type': 'request_forbidden'}} Traceback: File "/snap/pygpt/238/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 579, in create return self._post( File "/snap/pygpt/238/lib/python3.10/site-packages/openai/_base_client.py", line 1232, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/snap/pygpt/238/lib/python3.10/site-packages/openai/_base_client.py", line 921, in request return self._request( File "/snap/pygpt/238/lib/python3.10/site-packages/openai/_base_client.py", line 1012, in _request raise self._make_status_error_from_response(err.response) from None

szczyglis-dev commented 1 week ago

In version 2.4.12 (2024-11-15):