We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4727132 commit 804b0f0Copy full SHA for 804b0f0
web-app/src/lib/messages.ts
@@ -102,6 +102,15 @@ export class CompletionMessagesBuilder {
102
content = content.slice(splitIndex).trim()
103
}
104
105
+ if (content.includes('<|channel|>analysis<|message|>')) {
106
+ const match = content.match(
107
+ /<\|channel\|>analysis<\|message\|>([\s\S]*?)<\|start\|>assistant<\|channel\|>final<\|message\|>/
108
+ )
109
+ if (match?.index !== undefined) {
110
+ const splitIndex = match.index + match[0].length
111
+ content = content.slice(splitIndex).trim()
112
+ }
113
114
return content
115
116
0 commit comments