mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
ui_view_spend_logs (#7952)
This commit is contained in:
parent
7d320d31bd
commit
e6ec4f21e5
2 changed files with 2 additions and 13 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue