Exported getChatCompletionModel with optional parameter

This commit is contained in:
bmen25124
2025-02-25 15:45:35 +03:00
parent 20a982491a
commit 7064ce81c7
2 changed files with 11 additions and 4 deletions

View File

@ -57,7 +57,7 @@ import { groups, openGroupChat, selected_group } from './group-chats.js';
import { t, translate } from './i18n.js';
import { hideLoader, showLoader } from './loader.js';
import { MacrosParser } from './macros.js';
import { oai_settings } from './openai.js';
import { getChatCompletionModel, oai_settings } from './openai.js';
import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
import { power_user, registerDebugFunction } from './power-user.js';
import { getPresetManager } from './preset-manager.js';
@ -200,6 +200,7 @@ export function getContext() {
getTextGenServer,
extractMessageFromData,
getPresetManager,
getChatCompletionModel,
};
}