forked from phoenix/litellm-mirror
fix(proxy_server.py): fix endpoint
This commit is contained in:
parent
4a0df3cb4f
commit
4174471dac
1 changed files with 1 additions and 2 deletions
|
@ -3079,8 +3079,7 @@ async def view_spend_logs(
|
||||||
query_type="find_unique",
|
query_type="find_unique",
|
||||||
key_val={"key": "request_id", "value": request_id},
|
key_val={"key": "request_id", "value": request_id},
|
||||||
)
|
)
|
||||||
response = LiteLLM_SpendLogs_ResponseObject(response=[spend_log])
|
return [spend_log]
|
||||||
return response
|
|
||||||
elif user_id is not None:
|
elif user_id is not None:
|
||||||
spend_log = await prisma_client.get_data(
|
spend_log = await prisma_client.get_data(
|
||||||
table_name="spend",
|
table_name="spend",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue