diff --git a/src/views/digitalHuman/modelConfig/modelModule/index.vue b/src/views/digitalHuman/modelConfig/modelModule/index.vue
index c7bb262..9cf205b 100644
--- a/src/views/digitalHuman/modelConfig/modelModule/index.vue
+++ b/src/views/digitalHuman/modelConfig/modelModule/index.vue
@@ -38,10 +38,12 @@
+ —
@@ -108,6 +110,16 @@ const state = reactive({
},
});
+// 判断是否为推理模型(只有推理模型才显示会话模型开关)
+const isInferenceModel = (modelsType: number | string | undefined | null) => {
+ if (modelsType === undefined || modelsType === null || modelsType === '') {
+ return false;
+ }
+ // 查找模型类型标签,判断是否为"推理模型"
+ const typeInfo = state.modelTypes.find((t) => String(t.id) === String(modelsType));
+ return typeInfo?.label === '推理模型' || String(modelsType) === '1';
+};
+
// 会话模型开关切换
const onChatModelSwitchRequest = async (row: { id?: number | string; isChatModel?: number }) => {
try {