Skip to content

Conversation

@Tushar9184
Copy link

This PR addresses issue #494 where ChatDev fails to initialize due to a TypeError.

Changes:

  • Removed the deprecated proxies keyword argument from the OpenAI client initialization to ensure compatibility with OpenAI SDK v1.0.0+.
  • Standardized TokenUsage and TokenTracker in utils/token_tracker.py for better metadata handling.

The fix has been verified locally, and the initialization error is resolved.

@Tushar9184
Copy link
Author

Hi @maintainer, I have verified this fix locally. It resolves the TypeError: init() issue caused by the updated OpenAI SDK. Looking forward to your review!

Copy link
Collaborator

@NA-Wen NA-Wen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

Regarding runtime/node/agent/memory/embedding.py, it looks like there are no functional changes compared to the original file, only comments were added.

Also, note that issue #494 previously applied to the main branch, but that branch has now been superseded by chatdev1.0.

@NA-Wen NA-Wen closed this Jan 13, 2026
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

Successfully merging this pull request may close these issues.

2 participants