fix(provider): stabilize Codex prompt cache routing (#5540)

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-26 01:36:00 +08:00
1 parent 3ee3791626
commit 42f37dc4c0
10 files changed
+91 -26

No files matched your search

+2
View File
@@ -186,6 +186,7 @@ class FallbackProvider(LLMProvider):
return ProviderCallContext(
conversation_state=provider_context.conversation_state,
context_window_tokens=context_window_tokens,
session_id=provider_context.session_id,
)
def _primary_available(self) -> bool:
@@ -541,6 +542,7 @@ class FallbackProvider(LLMProvider):
fallback_kwargs["provider_context"] = ProviderCallContext(
conversation_state=state,
context_window_tokens=context_window_tokens,
session_id=provider_context.session_id,
)
if fallback.reasoning_effort is None:
fallback_kwargs.pop("reasoning_effort", None)