diff --git a/web/src/app/home/models/page.tsx b/web/src/app/home/models/page.tsx index 1856111c..6c47470e 100644 --- a/web/src/app/home/models/page.tsx +++ b/web/src/app/home/models/page.tsx @@ -8,7 +8,7 @@ import LLMCard from '@/app/home/models/component/llm-card/LLMCard'; import LLMForm from '@/app/home/models/component/llm-form/LLMForm'; import CreateCardComponent from '@/app/infra/basic-component/create-card-component/CreateCardComponent'; import { httpClient } from '@/app/infra/http/HttpClient'; -import { LLMModel } from '@/app/infra/api/api-types'; +import { LLMModel } from '@/app/infra/entities/api'; import { Dialog, DialogContent, diff --git a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx index c64c3149..d3c1f21a 100644 --- a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx +++ b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx @@ -209,6 +209,40 @@ export default function PipelineFormComponent({ } function renderDynamicForms(stage: PipelineConfigStage, formName: keyof FormValues) { + // 如果是 AI 配置,需要特殊处理 + if (formName === 'ai') { + // 获取当前选择的 runner + const currentRunner = form.watch('ai.runner.runner'); + + // 如果是 runner 配置项,直接渲染 + if (stage.name === 'runner') { + return ( +