From b45f47031064ed44148443e29e51b8c2242667bc Mon Sep 17 00:00:00 2001 From: zhaoying Date: Mon, 9 Feb 2026 16:57:06 +0800 Subject: [PATCH] fix(web): agent model name bugfix --- web/src/views/ApplicationConfig/Agent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/views/ApplicationConfig/Agent.tsx b/web/src/views/ApplicationConfig/Agent.tsx index 713ae1ef..a0587798 100644 --- a/web/src/views/ApplicationConfig/Agent.tsx +++ b/web/src/views/ApplicationConfig/Agent.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 16:29:21 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-09 10:33:21 + * @Last Modified time: 2026-02-09 16:56:27 */ import { type FC, type ReactNode, useEffect, useRef, useState, forwardRef, useImperativeHandle } from 'react'; import clsx from 'clsx' @@ -210,7 +210,7 @@ const Agent = forwardRef((_props, ref) => { }) if (default_model_config_id === values?.default_model_config_id) { setChatList([{ - label: vo.label || '', + label: defaultModel?.id === default_model_config_id && defaultModel?.name ? defaultModel.name : vo.label || '', model_config_id: default_model_config_id || '', model_parameters: {...rest}, list: []