feat: make the chat box display the correct model name, and allow multiple different models to be used at the same time (#49)

This commit is contained in:
josc146
2023-03-27 13:50:26 +08:00
parent a70682a7d3
commit 66af38a828
6 changed files with 26 additions and 25 deletions
+4
View File
@@ -9,6 +9,8 @@
* @typedef {object} Session
* @property {string|null} question
* @property {Object[]|null} conversationRecords
* @property {string|null} aiName
* @property {string|null} modelName
* @property {string|null} conversationId - chatGPT web mode
* @property {string|null} messageId - chatGPT web mode
* @property {string|null} parentMessageId - chatGPT web mode
@@ -24,6 +26,8 @@ export function initSession({ question = null, conversationRecords = [] } = {})
// common
question,
conversationRecords,
aiName: null,
modelName: null,
// chatgpt-web
conversationId: null,