fix(responses): log the bridge check failure lazily

The debug call built its message with an f-string, which
test_logging_calls_do_not_build_their_message_eagerly rejects. Pass the exception
as a %-style argument so the message is only built when the log is emitted.
This commit is contained in:
Joshua Garnett 2026-08-09 14:16:59 -04:00 committed by ryan-crabbe-berri
parent 3d648b7fe1
commit 216af3826e

View file

@ -337,7 +337,7 @@ class LiteLLMCompletionResponsesConfig:
api_base=api_base,
)
except Exception as e: # noqa: BLE001 # a capability probe must never fail the request it probes for
verbose_logger.debug(f"responses bridge: reasoning effort mode check failed: {e}")
verbose_logger.debug("responses bridge: reasoning effort mode check failed: %s", e)
return False
return model_info.get("mode") == "responses"