Skip to content

Commit

Permalink
Hotfix/0.4.1.1 (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit authored Jan 7, 2025
2 parents 62f995e + b34673f commit b16e967
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
run: echo "RELEASE_VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV

# 构建 bisheng_langchain
- name: Set python version 3.8
- name: Set python version 3.10
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.10

- name: Build PyPi bisheng-langchain and push
id: pypi_build_bisheng_langchain
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/src/pages/BuildPage/flow/FlowChat/MessageBs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ export default function MessageBs({ mark = false, logo, data, onUnlike = () => {
]
const message = useMemo(() => {
const msg = typeof data.message === 'string' ? data.message : data.message.msg

return msg
.replaceAll('$$', '$') // latex
.replace(/(?<!\n)\n(?!\n)/g, '\n\n') // 单个换行符
.replace(/(?<![\n\|])\n(?!\n)/g, '\n\n') // 单个换行符
}, [data.message])

const mkdown = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const SelectVar = forwardRef(({ nodeId, itemKey, multip = false, value = [], chi
<SelectTrigger
onClick={() => inputOpenRef.current = false}
showIcon={false}
className={cname('group p-0 h-auto data-[placeholder]:text-inherit border-none bg-transparent shadow-none outline-none focus:shadow-none focus:outline-none focus:ring-0', className)}>
className={cname('group shrink min-w-0 p-0 h-auto data-[placeholder]:text-inherit border-none bg-transparent shadow-none outline-none focus:shadow-none focus:outline-none focus:ring-0', className)}>
{children}
</SelectTrigger>
<SelectContent position="popper" avoidCollisions={false}>
Expand Down

0 comments on commit b16e967

Please sign in to comment.