mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
* fix(router): use max_completion_tokens for OpenAI GPT-5+ validation probe OpenAI GPT-5 models reject the legacy max_tokens parameter and require max_completion_tokens. The inference validation probe now sends max_completion_tokens as the primary parameter, with an automatic fallback to max_tokens when the backend returns HTTP 400 (for legacy/self-hosted backends that only support the older parameter). Closes #517 Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com> * style(router): fix cargo fmt import order and line length --------- Signed-off-by: Maxime Grenu <maxime.grenu@gmail.com> Co-authored-by: John Myers <johntmyers@users.noreply.github.com>