ui_view_spend_logs (#7952)

This commit is contained in:
Ishaan Jaff 2025-01-23 17:27:01 -08:00 • committed by GitHub
parent 7d320d31bd
commit e6ec4f21e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 13 deletions

View file

@ -13,8 +13,7 @@ model_list:
api_key: fake-key
api_base: https://exampleopenaiendpoint-production.up.railway.app/
general_settings:
store_prompts_in_spend_logs: true
litellm_settings:
callbacks: ["prometheus"]

View file

@ -1667,17 +1667,7 @@ async def ui_view_spend_logs( # noqa: PLR0915
param="None",
code=status.HTTP_401_UNAUTHORIZED,
)
if _should_store_prompts_and_responses_in_spend_logs() is not True:
verbose_proxy_logger.debug(
"Prompts and responses are not stored in spend logs, returning empty list"
)
return {
"data": [],
"total": 0,
"page": page,
"page_size": page_size,
"total_pages": 0,
}
if start_date is None or end_date is None:
raise ProxyException(
message="Start date and end date are required",