mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-09 19:22:26 +08:00
feat: add usage statistics and records feature with new API routes, frontend types, services, and UI components
This commit is contained in:
@@ -24,6 +24,7 @@ export interface PaginationParams {
|
||||
|
||||
export interface FilterParams {
|
||||
user_id?: string
|
||||
user_api_key_name?: string
|
||||
model?: string
|
||||
provider?: string
|
||||
status?: string
|
||||
@@ -255,6 +256,9 @@ export function useUsageData(options: UseUsageDataOptions) {
|
||||
if (filters?.user_id) {
|
||||
params.user_id = filters.user_id
|
||||
}
|
||||
if (filters?.user_api_key_name) {
|
||||
params.user_api_key_name = filters.user_api_key_name
|
||||
}
|
||||
if (filters?.model) {
|
||||
params.model = filters.model
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user