New
- Round-robin key selection: a new strategy that rotates evenly through the keys of a provider. Choose it in the routing settings. The default is unchanged. Thanks @Aniketchavan7. (#2022, #2027)
- Copy API URL button: each key row on the Keys page has a button that copies the provider's API base URL. Thanks @flipcyde101. (#2020, #2031)
- Clearer 429 errors: when every route is blocked, the error now says why (
cause: cooldown, provider limit, quota and so on), in the body and inX-Block-Causeheaders. Thanks @FabioLeitao. (#2118) - CLI:
freellmapi keys addreads the provider key fromFREELLMAPI_PROVIDER_KEYor piped stdin, so the key stays out of the command line. Thanks @w21180239. (#2100)
Fixes
- Failover on HTTP 405: a relay that answers 405 (a login or firewall page) no longer stops the request. The gateway tries the next route. Thanks @zhangsheng377. (#1999)
- Cloudflare neuron cap: one oversized call no longer blocks the whole Cloudflare account until midnight UTC. A call that does not fit is skipped and the request goes to the next provider. Calls now reserve
max_tokensup front, so clients that send very largemax_tokensuse Cloudflare less. Thanks @tevasas. (#2016) - Token usage on streamed Gemini and Ollama requests: usage now shows the provider's real counts instead of an estimate. Thanks @chuenchen309. (#2128)
*.localhostcustom providers: names such asollama.localhostnow work on systems whose DNS does not resolve them. Thanks @ixABK. (#2038)- Media models: catalog sync no longer removes or overwrites media models that a user added. Thanks @w21180239. (#2099)