add optional argument to changeMainApi (#4853)
This commit is contained in:
+2
-2
@@ -7294,8 +7294,8 @@ export async function openCharacterChat(file_name) {
|
||||
|
||||
////////// OPTIMZED MAIN API CHANGE FUNCTION ////////////
|
||||
|
||||
export function changeMainAPI() {
|
||||
const selectedVal = $('#main_api').val();
|
||||
export function changeMainAPI(api = null) {
|
||||
const selectedVal = api ?? $('#main_api').val();
|
||||
//console.log(selectedVal);
|
||||
const apiElements = {
|
||||
'koboldhorde': {
|
||||
|
||||
Reference in New Issue
Block a user