feat: add allowed models

This commit is contained in:
jialin
2025-10-13 15:21:17 +08:00
parent bcd1a339f9
commit 1fa2124efd
10 changed files with 311 additions and 227 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import { PageContainer } from '@ant-design/pro-components';
import { useIntl, useNavigate } from '@umijs/max';
import { Button, Input, Space } from 'antd';
import React from 'react';
import { MODELS_API, queryModelsList } from './apis';
import { MY_MODELS_API, queryMyModels } from './apis';
import ModelItem from './components/model-item';
import { categoryOptions, modelCategoriesMap } from './config';
import { categoryToPathMap } from './config/button-actions';
@@ -24,8 +24,8 @@ const UserModels: React.FC = () => {
handleQueryChange,
handleNameChange
} = useTableFetch<any>({
fetchAPI: queryModelsList,
API: MODELS_API,
fetchAPI: queryMyModels,
API: MY_MODELS_API,
watch: false
});
const intl = useIntl();