mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
fix(proxy): allowlist team tag activity endpoint
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
9ea95f8deb
commit
b83e878929
2 changed files with 2 additions and 3 deletions
|
|
@ -212,9 +212,7 @@ class DailyActivityRepository:
|
|||
rows: Final = _KEY_SPEND_ADAPTER.validate_python(tuple(row for row in result if row.get("api_key") is not None))
|
||||
return KeyPage(rows=rows, total_api_keys=total_api_keys)
|
||||
|
||||
async def tag_page(
|
||||
self, scope: DailyActivityScope, *, team_id: str, offset: int, limit: int
|
||||
) -> TagPage:
|
||||
async def tag_page(self, scope: DailyActivityScope, *, team_id: str, offset: int, limit: int) -> TagPage:
|
||||
query: Final = build_tag_page_sql(scope, team_id=team_id, offset=offset, limit=limit)
|
||||
result: Final = await self._query(query)
|
||||
total_tags_value: Final = result[0].get("total_tags") if result else 0
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ GET /tag/user-agent/per-user-analytics
|
|||
GET /tag/wau
|
||||
GET /team/daily/activity
|
||||
GET /team/daily/activity/aggregated
|
||||
GET /team/daily/activity/aggregated/tags # proxy-only analytics report; no provider resource
|
||||
GET /team/daily/activity/aggregated/keys
|
||||
GET /team/daily/activity/aggregated/model_top_keys
|
||||
GET /team/daily/activity/aggregated/search
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue