Run eslint

This commit is contained in:
Cohee 2024-11-30 18:14:46 +02:00
parent 04b68d2cce
commit 8e20ebb534

View File

@ -1254,8 +1254,8 @@ async function getStatusTextgen() {
const data = await response.json(); const data = await response.json();
if (data) { if (data) {
const { chat_template, chat_template_hash } = data; const { chat_template, chat_template_hash } = data;
if (wantsContextSize && "default_generation_settings" in data) { if (wantsContextSize && 'default_generation_settings' in data) {
const backend_max_context = data["default_generation_settings"]["n_ctx"]; const backend_max_context = data['default_generation_settings']['n_ctx'];
const old_value = max_context; const old_value = max_context;
if (max_context !== backend_max_context) { if (max_context !== backend_max_context) {
setGenerationParamsFromPreset({ max_length: backend_max_context }, true); setGenerationParamsFromPreset({ max_length: backend_max_context }, true);