diff --git a/public/css/st-tailwind.css b/public/css/st-tailwind.css index 69f5843a9..88e4ccb10 100644 --- a/public/css/st-tailwind.css +++ b/public/css/st-tailwind.css @@ -612,3 +612,7 @@ ul.li-padding-bot5 li { ul.li-padding-bot10 li { padding-bottom: 10px; } + +.wordBreakAll { + word-break: break-all; +} diff --git a/public/scripts/slash-commands/SlashCommandReturnHelper.js b/public/scripts/slash-commands/SlashCommandReturnHelper.js index 3601c30cd..947e92cd3 100644 --- a/public/scripts/slash-commands/SlashCommandReturnHelper.js +++ b/public/scripts/slash-commands/SlashCommandReturnHelper.js @@ -58,7 +58,7 @@ export const slashCommandReturnHelper = { case 'toast-html': { const htmlOrNotHtml = shouldHtml ? DOMPurify.sanitize((new showdown.Converter()).makeHtml(stringValue)) : escapeHtml(stringValue); - if (type.startsWith('popup')) await callGenericPopup(htmlOrNotHtml, POPUP_TYPE.TEXT); + if (type.startsWith('popup')) await callGenericPopup(htmlOrNotHtml, POPUP_TYPE.TEXT, '', { allowVerticalScrolling: true, wide: true }); if (type.startsWith('chat')) sendSystemMessage(system_message_types.GENERIC, htmlOrNotHtml); if (type.startsWith('toast')) toastr.info(htmlOrNotHtml, null, { escapeHtml: !shouldHtml }); diff --git a/public/scripts/tool-calling.js b/public/scripts/tool-calling.js index 43312d3d8..2e5c0a65c 100644 --- a/public/scripts/tool-calling.js +++ b/public/scripts/tool-calling.js @@ -158,8 +158,8 @@ class ToolDefinition { description: this.#description, parameters: this.#parameters, }, - toString: (/** @type {ToolDefinitionOpenAI} */ tool) => { - return `${tool?.function?.name} - ${tool?.function?.description}\n${JSON.stringify(tool?.function?.parameters, null, 2)}`; + toString: function() { + return `
${JSON.stringify(this.function.parameters, null, 2)}