Skip to content

Commit

Permalink
Remove commented-out URL encoding for tool messages in AIChat hook
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 10, 2025
1 parent 65f1548 commit 5f93328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/xgen/layouts/components/Neo/hooks/useAIChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ export default ({ chat_id, upload_options = {} }: Args) => {
group.forEach((item) => {
if (item.type === 'think' || item.type === 'tool') {
let text = item.props?.['text'] || ''
if (item.type == 'tool') {
text = text.replace(/\{/g, '%7B')
}
// if (item.type == 'tool') {
// text = text.replace(/\{/g, '%7B')
// }
mergedText += '\n' + text
} else {
mergedText += '\n' + item.text || ''
Expand Down

0 comments on commit 5f93328

Please sign in to comment.