Enhance plugin functionality by adding optional provider parameters and improving thoughts extraction regex
This commit is contained in:
@@ -2337,7 +2337,7 @@ export function parseChatML(data:string):OpenAIChat[]|null{
|
||||
|
||||
|
||||
let thoughts:string[] = []
|
||||
v = v.replace(/<Thoughts>(.*?)<\/Thoughts>/g, (match, p1) => {
|
||||
v = v.replace(/<Thoughts>(.+)<\/Thoughts>/gms, (match, p1) => {
|
||||
thoughts.push(p1)
|
||||
return ''
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user