feat: retry button

This commit is contained in:
josc146
2023-03-31 16:32:12 +08:00
parent 46348e1391
commit 90141b919b
11 changed files with 80 additions and 40 deletions
+2
View File
@@ -9,6 +9,7 @@
* @typedef {object} Session
* @property {string|null} question
* @property {Object[]|null} conversationRecords
* @property {boolean} isRetry
* @property {string|null} aiName
* @property {string|null} modelName
* @property {string|null} conversationId - chatGPT web mode
@@ -26,6 +27,7 @@ export function initSession({ question = null, conversationRecords = [] } = {})
// common
question,
conversationRecords,
isRetry: false,
aiName: null,
modelName: null,