SimpleChat:JS:Keep MultiChatUI simple for now

Worry about different chats with different servers for later.
This commit is contained in:
HanishKVC 2024-05-20 23:21:04 +05:30
parent 5c1a9f4d8b
commit fcf2af9504

View file

@ -218,24 +218,20 @@ let gChatURL = {
}
const gbCompletionFreshChatAlways = true;
class MultiChat {
class MultiChatUI {
constructor() {
/** @type {number} */
this.iChat = -1;
/** @type {SimpleChat[]} */
this.simpleChats = [];
/** @type {string[]} */
this.baseURLs = [];
}
/**
* Start a new chat
* @param {string} baseURL
*/
new_chat(baseURL) {
new_chat() {
this.simpleChats.push(new SimpleChat());
this.baseURLs.push(baseURL);
this.iChat = this.simpleChats.length - 1;
}