Skip to content

TypeError: Client.__init__() got an unexpected keyword argument 'proxies' #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Dhracyr opened this issue Feb 9, 2025 · 0 comments

Comments

@Dhracyr
Copy link

Dhracyr commented Feb 9, 2025

I followed the normal Windows 10 installing instructions and completed the setup successfully.
(I am using Python 3.11.9)

After reopening it again I am stuck at this exception:

Server started on http://localhost:3000
API keys are set, starting server and backend...
Server is already running on port 3000
Python Error: C:\Miles-env\M.I.L.E.S\Miles-V2\main.py:1: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
from cgi import print_directory

Python Output: Tool list JSON has been saved to C:\Miles-env\M.I.L.E.S\Miles-V2\plugin_tool_list.json

Python Error: Traceback (most recent call last):
File "C:\Miles-env\M.I.L.E.S\Miles-V2\main.py", line 645, in

Python Error: client = OpenAI(api_key=api_key)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Miles-env\Lib\site-packages\openai_client.py", line 112, in init

Python Error: super().init(
File "C:\Miles-env\Lib\site-packages\openai_base_client.py", line 806, in init

Python Error: self._client = http_client or SyncHttpxClientWrapper(
^^^^^
Python Error: ^^^^^^^^^^^^^^^^^^
TypeError: Client.init() got an unexpected keyword argument 'proxies'

Python script exited with code: 1

Could it be, that OpenAI has changed its syntax or keyword arguments? Unfortunately, I couldn't figure it out from the code alone.
I gladly answer your questions, if you have some :)

Best regards!
Dhracyr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant