mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-18 02:30:51 +08:00
feat: enhance MainLayout with header height management using useLayoutEffect, improve AiProvidersPage by removing priority field, and update UsagePage with dynamic stats cards and sparkline charts for better data visualization
This commit is contained in:
@@ -19,7 +19,11 @@ export const authFilesApi = {
|
||||
deleteAll: () => apiClient.delete('/auth-files', { params: { all: true } }),
|
||||
|
||||
// OAuth 排除模型
|
||||
getOauthExcludedModels: () => apiClient.get('/oauth-excluded-models'),
|
||||
async getOauthExcludedModels(): Promise<Record<string, string[]>> {
|
||||
const data = await apiClient.get('/oauth-excluded-models');
|
||||
const payload = (data && (data['oauth-excluded-models'] ?? data.items ?? data)) as any;
|
||||
return payload && typeof payload === 'object' ? payload : {};
|
||||
},
|
||||
|
||||
saveOauthExcludedModels: (provider: string, models: string[]) =>
|
||||
apiClient.patch('/oauth-excluded-models', { provider, models }),
|
||||
|
||||
Reference in New Issue
Block a user