ChatDev icon indicating copy to clipboard operation
ChatDev copied to clipboard

Proxy issue error

Open maxxlife opened this issue 8 months ago • 0 comments

Does ChatDev uses old API call?

python3 run.py --task "[create a tetris where bricks are lego blocks]" --name "tetris"
Traceback (most recent call last):
  File "/Users/maxxlife/github_repos/ChatDev/run.py", line 24, in <module>
    from chatdev.chat_chain import ChatChain
  File "/Users/maxxlife/github_repos/ChatDev/chatdev/chat_chain.py", line 14, in <module>
    from camel.web_spider import modal_trans
  File "/Users/maxxlife/github_repos/ChatDev/camel/web_spider.py", line 18, in <module>
    client = openai.OpenAI(
  File "/opt/anaconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_client.py", line 123, in __init__
    super().__init__(
  File "/opt/anaconda3/envs/ChatDev_conda_env/lib/python3.9/site-packages/openai/_base_client.py", line 847, in __init__
    self._client = http_client or SyncHttpxClientWrapper(
  File "/opt/anaconda3/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'

My openai version isName: openai Version: 1.47.1 Summary: The official Python library for the openai API Home-page: https://github.com/openai/openai-python Author: Author-email: OpenAI [email protected]

maxxlife avatar May 02 '25 17:05 maxxlife