浏览代码

Fix: In the Agent's workflow, the input content cannot be wrapped, and \n will not work, otherwise an error will be reported #6241 (#6284)

### What problem does this PR solve?

Fix: In the Agent's workflow, the input content cannot be wrapped, and
\n will not work, otherwise an error will be reported #6241

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
balibabu 7 个月前
父节点
当前提交
d17ec26c56
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      web/src/pages/chat/hooks.ts

+ 2
- 2
web/src/pages/chat/hooks.ts 查看文件

@@ -343,8 +343,8 @@ export const useHandleMessageInputChange = () => {

const handleInputChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => {
const value = e.target.value;
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
setValue(nextValue);
// const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
setValue(value);
};

return {

正在加载...
取消
保存