python-v0.4.8.2
📦 autogen
🐛 2 fixes🔧 3 symbols
Summary
This patch release fixes a token limit issue in Azure AI streaming and introduces a close() method to model clients to resolve resource leaks and transport warnings.
Migration Steps
- Ensure that close() is called on model client instances or managed via context managers to properly release resources upon program exit.
🐛 Bug Fixes
- Removed hardcoded max_tokens=20 from AzureAIChatCompletionClient.create_stream when streaming is enabled.
- Added close() method to built-in model clients to prevent 'ResourceWarning: unclosed transport' errors by ensuring the async event loop closes properly.
🔧 Affected Symbols
AzureAIChatCompletionClient.create_streamAzureAIChatCompletionClientweb_surfer