Move poe API to main block

This commit is contained in:
SillyLossy
2023-04-04 16:04:27 +03:00
parent 2ab42f40f7
commit ddb7eee3fb
10 changed files with 335 additions and 331 deletions

View File

@ -21,6 +21,7 @@ import {
import { LoadLocal, SaveLocal, ClearLocal, CheckLocal, LoadLocalBool } from "./f-localStorage.js";
import { selected_group, is_group_generating } from "./group-chats.js";
import { oai_settings } from "./openai.js";
import { poe_settings } from "./poe.js";
var NavToggle = document.getElementById("nav-toggle");
var PanelPin = document.getElementById("rm_button_panel_pin");
@ -246,6 +247,12 @@ function RA_autoconnect(PrevApi) {
$("#api_button_openai").click();
}
break;
case 'poe':
if (poe_settings.token) {
$("#poe_connect").click();
}
break;
}
if (!connection_made) {