textgen-models.js: update for new popup

This commit is contained in:
Cohee
2025-06-02 23:58:19 +03:00
parent 45ef4b60c9
commit 5e4c570eb0

View File

@@ -1,6 +1,6 @@
import { DOMPurify } from '../lib.js';
import { isMobile } from './RossAscends-mods.js';
import { amount_gen, callPopup, eventSource, event_types, getRequestHeaders, max_context, online_status, setGenerationParamsFromPreset } from '../script.js';
import { amount_gen, eventSource, event_types, getRequestHeaders, max_context, online_status, setGenerationParamsFromPreset } from '../script.js';
import { textgenerationwebui_settings as textgen_settings, textgen_types } from './textgen-settings.js';
import { tokenizers } from './tokenizers.js';
import { renderTemplateAsync } from './templates.js';
@@ -761,7 +761,7 @@ async function downloadOllamaModel() {
const html = `Enter a model tag, for example <code>llama2:latest</code>.<br>
See <a target="_blank" href="https://ollama.ai/library">Library</a> for available models.`;
const name = await callPopup(html, 'input', '', { okButton: 'Download' });
const name = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { okButton: 'Download' });
if (!name) {
return;