mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
get all tags on ui
This commit is contained in:
parent
991d418984
commit
2ac8f1c6ec
2 changed files with 13 additions and 10 deletions
|
@ -8246,10 +8246,9 @@ async def global_get_all_tag_names():
|
|||
)
|
||||
|
||||
sql_query = """
|
||||
SELECT
|
||||
jsonb_array_elements_text(request_tags) AS individual_request_tag
|
||||
FROM "LiteLLM_SpendLogs"
|
||||
GROUP BY individual_request_tag
|
||||
SELECT DISTINCT
|
||||
jsonb_array_elements_text(request_tags) AS individual_request_tag
|
||||
FROM "LiteLLM_SpendLogs";
|
||||
"""
|
||||
|
||||
db_response = await prisma_client.db.query_raw(sql_query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue