feat(web): cluster

This commit is contained in:
zhaoying
2025-12-31 12:30:36 +08:00
parent 3560038894
commit 24d68de98c
7 changed files with 207 additions and 99 deletions

View File

@@ -17,7 +17,8 @@ import type {
KnowledgeConfig,
Variable,
MemoryConfig,
AiPromptModalRef
AiPromptModalRef,
Source
} from './types'
import type { Model } from '@/views/ModelManagement/types'
import { getModelList } from '@/api/models';
@@ -200,7 +201,7 @@ const Agent = forwardRef<AgentRef>((_props, ref) => {
})
}
const refresh = (vo: ModelConfig, type: 'model' | 'chat') => {
const refresh = (vo: ModelConfig, type: Source) => {
if (type === 'model') {
const { default_model_config_id, ...rest } = vo
form.setFieldsValue({
@@ -445,7 +446,6 @@ const Agent = forwardRef<AgentRef>((_props, ref) => {
<ModelConfigModal
modelList={modelList}
data={formData as Config}
chatList={chatList}
ref={modelConfigModalRef}
refresh={refresh}
/>