mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
address greptile review feedback (greploop iteration 2)
- wrap record_request_timing() in try/except so errors never 500 users
This commit is contained in:
parent
90b55f01f0
commit
6e9f245bbb
1 changed files with 7 additions and 4 deletions
|
|
@ -497,10 +497,13 @@ class ProxyBaseLLMRequestProcessing:
|
|||
if logging_caching_headers:
|
||||
headers.update(logging_caching_headers)
|
||||
|
||||
record_request_timing(
|
||||
hidden_params,
|
||||
model=(request_data or {}).get("model") or None,
|
||||
)
|
||||
try:
|
||||
record_request_timing(
|
||||
hidden_params,
|
||||
model=(request_data or {}).get("model") or None,
|
||||
)
|
||||
except Exception as e:
|
||||
verbose_proxy_logger.debug(f"record_request_timing error (non-fatal): {e}")
|
||||
|
||||
try:
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue