[Bugfix][Frontend] Default max_tokens server-side on /inference/v1/generate (#42329)

Signed-off-by: hallerite <git@hallerite.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hallerite
2026-05-13 11:16:46 +02:00
committed by GitHub
co-authored by Claude Opus 4.7
parent f6e868fbdf
commit 97c4317bf5
5 changed files with 168 additions and 2 deletions
@@ -145,6 +145,7 @@ def test_openapi_stateless(case: Case):
("POST", "/v1/chat/completions/batch"): LONG_TIMEOUT_SECONDS,
("POST", "/v1/completions"): LONG_TIMEOUT_SECONDS,
("POST", "/v1/messages"): LONG_TIMEOUT_SECONDS,
("POST", "/inference/v1/generate"): LONG_TIMEOUT_SECONDS,
}.get(key, DEFAULT_TIMEOUT_SECONDS)
# No need to verify SSL certificate for localhost