Skip to content

Commit

Permalink
phase 2
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Jan 3, 2025
1 parent fe3a2b9 commit fa0deb9
Show file tree
Hide file tree
Showing 20 changed files with 897 additions and 300 deletions.
4 changes: 4 additions & 0 deletions frontend/providers/aiproxy/api/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { GroupSearchResponse } from '@/app/api/admin/group/route'
import { GetAllChannelResponse } from '@/app/api/admin/channel/all/route'
import { DashboardQueryParams } from '@/app/api/user/dashboard/route'
import { DashboardResponse } from '@/types/user/dashboard'
import { UserLogDetailResponse } from '@/app/api/user/log/detail/[log_id]/route'

export const initAppConfig = () =>
GET<{ aiproxyBackend: string; currencySymbol: 'shellCoin' | 'cny' | 'usd' }>(
Expand All @@ -31,6 +32,9 @@ export const getEnabledMode = () => GET<GetEnabledModelsResponse['data']>('/api/
export const getUserLogs = (params: UserLogQueryParams) =>
GET<UserLogSearchResponse['data']>('/api/user/log', params)

export const getUserLogDetail = (log_id: number) =>
GET<UserLogDetailResponse['data']>(`/api/user/log/detail/${log_id}`)

// token
export const getTokens = (params: GetTokensQueryParams) =>
GET<GetTokensResponse['data']>('/api/user/token', params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default function Home(): React.JSX.Element {
fontWeight="500"
lineHeight="16px"
letterSpacing="0.5px">
{t('logs.name')}
{t('GlobalLogs.keyName')}
</Text>
<Input
w="500px"
Expand Down Expand Up @@ -361,7 +361,7 @@ export default function Home(): React.JSX.Element {
fontWeight="500"
lineHeight="16px"
letterSpacing="0.5px">
{t('logs.name')}
{t('GlobalLogs.groupId')}
</Text>
<Input
w="500px"
Expand Down
Loading

0 comments on commit fa0deb9

Please sign in to comment.