unexpected keyword argument 'proxies'
- Dominant language
- HTML
- Stars
- 6k
- Forks
- 718
- PR merge metrics
- No merged PRs in 30d
Description
First off, I really like the concept, great work! I am trying to just get the master running on my local. It starts up okay but when I attempt to create an app it fails with this. Has anyone else run into this? Thoughts?
Error:
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/redacted/workspace/DevOpsGPT/backend/app/controllers/common.py", line 12, in decorated_function
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/workspace/DevOpsGPT/backend/app/controllers/step_requirement.py", line 38, in clarify
msg, success = clarifyRequirement(requirementID, userPrompt, globalContext, appArchitecture, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/workspace/DevOpsGPT/backend/app/pkgs/prompt/prompt.py", line 29, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/workspace/DevOpsGPT/backend/app/pkgs/prompt/prompt.py", line 41, in clarifyRequirement
return obj.clarifyRequirement(requirementID, userPrompt, globalContext, appArchitecture, req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/redacted/workspace/DevOpsGPT/backend/app/pkgs/prompt/requirement_basic.py", line 280, in clarifyRequirement
message, total_tokens, success = chatCompletion(
^^^^^^^^^^^^^^^
File "/Users/redacted/workspace/DevOpsGPT/backend/app/pkgs/tools/llm.py", line 28, in chatCompletion
raise Exception("服务异常,请重试。Service exception, please try again.")
Exception: 服务异常,请重试。Service exception, please try again.
...
My environment:
-- Mac os x (14)
-- Python3 (3.14)
Contributor guide
Research direction
Start by reproducing the app-creation failure on the reported Python and macOS environment, then trace the request through backend/app/controllers/step_requirement.py and backend/app/pkgs/prompt/requirement_basic.py to backend/app/pkgs/tools/llm.py. Confirm which client initialization produces the unexpected proxies argument; done means app creation no longer raises this exception and the relevant flow can be exercised successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100