test(messages): fix openai routing expectation

This commit is contained in:
mikemikimike 2026-08-22 10:57:43 +08:00
parent a3ed9a04f3
commit c4f3bf837d

View file

@ -986,7 +986,7 @@ def test_gate_passthrough_skipped_when_only_chat_completions_supported(monkeypat
model_info={"supported_endpoints": ["/v1/chat/completions"]},
)
assert result == "chat-completions"
assert translation_calls["responses"] == 0
assert translation_calls["chat_completions"] == 1
assert result == "responses"
assert translation_calls["responses"] == 1
assert translation_calls["chat_completions"] == 0
assert "config" not in captured