diff --git a/app/components/chat.module.scss b/app/components/chat.module.scss index 7560d030533..bea74a835db 100644 --- a/app/components/chat.module.scss +++ b/app/components/chat.module.scss @@ -751,3 +751,33 @@ } } } + +.model-list { + display: flex; + flex-wrap: wrap; +} + +.model-item { + margin: 10px; + padding: 10px; + border: 1px solid #ccc; + cursor: pointer; + border-radius: 5px; +} + +.model-item.selected { + background-color: #007bff; + color: white; +} + +.radio-button-robot { + height: 55px; + width: 100%; + font-size: 17px; + line-height: 55px; + text-align: center; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-weight: bold; +} diff --git a/app/components/chat.tsx b/app/components/chat.tsx index a5a3b7afe7c..dff41553a72 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -833,7 +833,7 @@ export function ChatActions(props: { onClick={() => { //执行切换模型 const [model, providerName] = robotModel.split("@"); - chatStore.updateCurrentSession((session) => { + chatStore.updateTargetSession(session,(session) => { session.mask.modelConfig.model = model as ModelType; session.mask.modelConfig.providerName = providerName as ServiceProvider;