add optional argument to changeMainApi (#4853)

This commit is contained in:
Sammy
2025-12-02 13:52:42 +01:00
committed by GitHub
parent b6a480b329
commit f145296a58
+2 -2
View File
@@ -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': {