We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec2ba1 commit f75c15dCopy full SHA for f75c15d
litellm/proxy/proxy_server.py
@@ -8693,17 +8693,13 @@ async def global_spend_logs(
8693
8694
return response
8695
else:
8696
- sql_query = (
8697
- """
+ sql_query = """
8698
SELECT * FROM "MonthlyGlobalSpendPerKey"
8699
- WHERE "api_key" = '"""
8700
- + api_key
8701
- + """'
+ WHERE "api_key" = $1
8702
ORDER BY "date";
8703
8704
- )
+ """
8705
8706
- response = await prisma_client.db.query_raw(query=sql_query)
+ response = await prisma_client.db.query_raw(sql_query, api_key)
8707
8708
8709
return
0 commit comments