fix(provider): stabilize Codex prompt cache routing (#5540)
This commit is contained in:
1 parent
3ee3791626
commit
42f37dc4c0
10 files changed
+91
-26
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user