[高] Agent AsyncOpenAI客户端从未关闭导致连接泄漏 #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
缓解说明
AsyncOpenAI客户端每次 LLM 调用创建新实例,底层 httpx 在垃圾回收时自动释放连接池。完全修复需要重构为长生命周期客户端,记录为后续优化项。当前方案:httpx 默认连接池复用 + GC 回收,不会造成严重泄漏。