OpenBMB / OpenBMB/ChatDev

TypeError: __init__() got an unexpected keyword argument 'proxies'

Open
#494 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.3k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

When I try to run the code to create a simple pac man game I get this error.

python run.py --task "Build a simple pacman game" --name "PAC_MAN" 
Traceback (most recent call last):
  File "/Users/Evari/Documents/Tinkering/ChatDev/run.py", line 24, in <module>
    from chatdev.chat_chain import ChatChain
  File "/Users/Evari/Documents/Tinkering/ChatDev/chatdev/chat_chain.py", line 14, in <module>
    from camel.web_spider import modal_trans
  File "/Users/Evari/Documents/Tinkering/ChatDev/camel/web_spider.py", line 18, in <module>
    client = openai.OpenAI(
  File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_client.py", line 123, in __init__
    super().__init__(
  File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_base_client.py", line 847, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
  File "/Users/Evari/miniforge3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_base_client.py", line 745, in __init__
    super().__init__(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'proxies'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the command from the report, then inspect the OpenAI client initialization at line 18 of camel/web_spider.py and the installed package versions shown in the traceback. Trace the incompatibility causing the unexpected proxies argument; done means the reported command gets past this import and client initialization without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.