mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-09 02:55:59 +08:00
fix: when the conversation is empty and Regenerate the answer after switching model is set, switching model will send useless requests, resulting in the problem of inability to input (#210)
This commit is contained in:
@@ -225,7 +225,8 @@ function ConversationCard(props) {
|
||||
onChange={(e) => {
|
||||
const modelName = e.target.value
|
||||
const newSession = { ...session, modelName, aiName: Models[modelName].desc }
|
||||
if (config.autoRegenAfterSwitchModel) getRetryFn(newSession)()
|
||||
if (config.autoRegenAfterSwitchModel && conversationItemData.length > 0)
|
||||
getRetryFn(newSession)()
|
||||
else setSession(newSession)
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user