fix: handle NoneType request_overrides in fast_mode check (#7350)

This commit is contained in:
0xbyt4 2026-04-10 23:07:25 +03:00 committed by GitHub
parent 360b21ce95
commit 0bea603510
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5602,7 +5602,7 @@ class AIAgent:
preserve_dots=self._anthropic_preserve_dots(),
context_length=ctx_len,
base_url=getattr(self, "_anthropic_base_url", None),
fast_mode=self.request_overrides.get("speed") == "fast",
fast_mode=(self.request_overrides or {}).get("speed") == "fast",
)
if self.api_mode == "codex_responses":