fix(gateway): avoid low OpenAI-compatible test token cap

This commit is contained in:
MMEXA
2026-05-18 03:06:46 +00:00
parent f50f26e599
commit 66f154a251
3 changed files with 14 additions and 4 deletions
@@ -1920,6 +1920,10 @@ async fn gateway_handles_public_test_connection_without_hitting_fallback_probe()
);
assert_eq!(body_json["model"], "gpt-5");
assert_eq!(body_json["messages"][0]["content"], "Health check");
assert!(
body_json.get("max_tokens").is_none(),
"public OpenAI-compatible test connection must not force a tiny max_tokens value"
);
Json(json!({"id": "resp_local_test"})).into_response()
}
}),