Autosize prompt manager boxes

This commit is contained in:
Cohee
2023-08-27 21:28:13 +03:00
parent 1a5dbf2603
commit 636c06ffdd
2 changed files with 18 additions and 13 deletions

View File

@ -50,6 +50,7 @@ import {
download,
getFileText, getSortableDelay,
parseJsonFile,
resetScrollHeight,
stringFormat,
} from "./utils.js";
import { countTokensOpenAI } from "./tokenizers.js";
@ -3141,6 +3142,10 @@ $(document).ready(async function () {
saveSettingsDebounced();
});
$(document).on('input', '#openai_settings .autoSetHeight', function () {
resetScrollHeight($(this));
});
$("#api_button_openai").on("click", onConnectButtonClick);
$("#openai_reverse_proxy").on("input", onReverseProxyInput);
$("#model_openai_select").on("change", onModelChange);