mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
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:
parent
3d648b7fe1
commit
216af3826e
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue