mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
style: format bug report changes
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
2b77c1c2e9
commit
05679d1398
2 changed files with 2 additions and 8 deletions
|
|
@ -140,11 +140,7 @@ def bug_report_issue_url(report: BugReport) -> str:
|
|||
message: Final = report.exception_message
|
||||
candidates: Final = (
|
||||
*(_issue_url(report, message, frames[index:]) for index in range(len(frames) + 1)),
|
||||
*(
|
||||
_issue_url(report, message[:length], ())
|
||||
for length in _SHORTENED_MESSAGE_LENGTHS
|
||||
if length < len(message)
|
||||
),
|
||||
*(_issue_url(report, message[:length], ()) for length in _SHORTENED_MESSAGE_LENGTHS if length < len(message)),
|
||||
)
|
||||
return next((candidate for candidate in candidates if len(candidate) <= MAX_URL_LENGTH), _issue_url(report, "", ()))
|
||||
|
||||
|
|
|
|||
|
|
@ -3667,9 +3667,7 @@ class ProxyBaseLLMRequestProcessing:
|
|||
if bug_report_enabled():
|
||||
proxy_server_request: Final = self.data.get("proxy_server_request")
|
||||
request_url: Final = (
|
||||
proxy_server_request.get("url")
|
||||
if isinstance(proxy_server_request, Mapping)
|
||||
else None
|
||||
proxy_server_request.get("url") if isinstance(proxy_server_request, Mapping) else None
|
||||
)
|
||||
request_path: Final = urlparse(str(request_url)).path if request_url is not None else None
|
||||
verbose_proxy_logger.error(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue