mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
openAiCompatibleClientBuilder() was creating a new java.net.http.HttpClient per request. Each instance spawns a selector thread and connection pool that are never closed, exhausting the OS thread limit under frequent model-test calls (e.g. DeepSeek provider). Elevate the HttpClient to a static singleton so all OpenAI-compatible provider requests share one connection pool and one selector thread. Closes matevip/mateclaw#328 |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||