mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
OpenAI support (by @CncAnon1)
This commit is contained in:
@ -20,6 +20,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";
|
||||
|
||||
var NavToggle = document.getElementById("nav-toggle");
|
||||
var PanelPin = document.getElementById("rm_button_panel_pin");
|
||||
@ -233,6 +234,12 @@ function RA_autoconnect() {
|
||||
RA_AC_retries = 1;
|
||||
}
|
||||
break;
|
||||
case 'openai':
|
||||
if (oai_settings.api_key_openai) {
|
||||
$("#api_button_openai").click();
|
||||
retry_delay = 100;
|
||||
RA_AC_retries = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (!connection_made) {
|
||||
|
Reference in New Issue
Block a user