test: Add test to ensure responses API is used regardless of circuit breaker state

This commit is contained in:
outlook84
2026-05-25 01:23:36 +08:00
committed by Xubin Ren
parent c433d60681
commit 92f2ff3a33
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -740,7 +740,9 @@ class OpenAICompatProvider(LLMProvider):
if self._spec and self._spec.name not in ("openai", "github_copilot"):
return False
if self._api_type == "responses":
return self._responses_circuit_allows_probe(model, reasoning_effort)
# Explicit configuration means Responses is mandatory; do not
# consult the circuit breaker or fall back to Chat Completions.
return True
if self._spec is None or self._spec.name != "github_copilot":
if not _is_direct_openai_base(self._effective_base):
return False