perf: completions api.fix: new chat question guide (#361)

This commit is contained in:
Archer
2023-09-27 12:05:13 +08:00
committed by GitHub
parent 11848b8f44
commit ab57bfcc4a
16 changed files with 555 additions and 538 deletions

View File

@@ -113,7 +113,7 @@ const Chat = ({ appId, chatId }: { appId: string; chatId: string }) => {
history: ChatBoxRef.current?.getChatHistory() || state.history
}));
return { responseText, responseData };
return { responseText, responseData, isNewChat: forbidRefresh.current };
},
[appId, chatId, history, router, setChatData, updateHistory]
);