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