mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
ui new build
This commit is contained in:
parent
276a7089df
commit
f2a0566d0c
1 changed files with 3 additions and 20 deletions
|
|
@ -3,26 +3,9 @@ import { KeyResponse } from "./key_list";
|
|||
export const transformKeyInfo = (apiResponse: any): KeyResponse => {
|
||||
const { key, info } = apiResponse;
|
||||
|
||||
// Simply combine the key with all info fields
|
||||
return {
|
||||
token: key,
|
||||
key_name: info.key_name,
|
||||
key_alias: info.key_alias,
|
||||
spend: info.spend,
|
||||
expires: info.expires,
|
||||
models: info.models,
|
||||
aliases: info.aliases,
|
||||
config: info.config,
|
||||
user_id: info.user_id,
|
||||
team_id: info.team_id,
|
||||
permissions: info.permissions,
|
||||
max_parallel_requests: info.max_parallel_requests,
|
||||
metadata: info.metadata,
|
||||
tpm_limit: info.tpm_limit,
|
||||
rpm_limit: info.rpm_limit,
|
||||
max_budget: info.max_budget,
|
||||
budget_duration: info.budget_duration,
|
||||
organization_id: info.organization_id,
|
||||
created_at: info.created_at,
|
||||
litellm_budget_table: info.litellm_budget_table,
|
||||
};
|
||||
...info
|
||||
} as KeyResponse;
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue