diff --git a/api/app/clients/prompts/formatMessages.js b/api/app/clients/prompts/formatMessages.js index a5ed05c645..1ea44f9d29 100644 --- a/api/app/clients/prompts/formatMessages.js +++ b/api/app/clients/prompts/formatMessages.js @@ -142,6 +142,9 @@ const formatAgentMessages = (payload) => { const messages = []; for (const message of payload) { + if (typeof message.content === 'string') { + message.content = [{ type: ContentTypes.TEXT, [ContentTypes.TEXT]: message.content }]; + } if (message.role !== 'assistant') { messages.push(formatMessage({ message, langChain: true })); continue; diff --git a/client/src/components/ui/SelectDropDown.tsx b/client/src/components/ui/SelectDropDown.tsx index 550a6bf456..26ed808b28 100644 --- a/client/src/components/ui/SelectDropDown.tsx +++ b/client/src/components/ui/SelectDropDown.tsx @@ -102,7 +102,6 @@ function SelectDropDown({ const hasSearchRender = searchRender != null; const options = hasSearchRender ? filteredValues : availableValues; - console.log({ hasSearchRender, options }); const renderIcon = showOptionIcon && value != null && (value as OptionWithIcon).icon != null; return (