You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached (extremely simple) script invokes OpenAIChatCompletionClient and gets an appropriate response.
But on app shutdown a warning about "unclosed transport" is printed. As noted in the code, the warning disappears if the unused web_surfer import line is removed.
(ag3) rdlrdl@riloynd6:~/repos2/autogen/python/packages/autogen-ext/samples$ python warning_repro.py
Function calls again,
In endless looping layers—
Code within the code.
/home/rdlrdl/miniconda3/envs/ag3/lib/python3.10/asyncio/selector_events.py:710: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=6>
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
What happened?
The attached (extremely simple) script invokes
OpenAIChatCompletionClient
and gets an appropriate response.But on app shutdown a warning about "unclosed transport" is printed. As noted in the code, the warning disappears if the unused web_surfer import line is removed.
warning_repro.txt
What did you expect to happen?
Same behavior but without the warning.
How can we reproduce it (as minimally and precisely as possible)?
Install the following in a virtual environment:
Run the attached code (after renaming the extension to .py, and supplying an api_key).
AutoGen version
0.4.0.dev11
Which package was this bug in
Core
Model used
gpt-4o-2024-08-06
Python version
3.10
Operating system
WSL2
Any additional info you think would be helpful for fixing this bug
No response
The text was updated successfully, but these errors were encountered: