Skip to content

Commit

Permalink
Fix formatting of thoughts in request processing to ensure proper lin…
Browse files Browse the repository at this point in the history
…e breaks
  • Loading branch information
kwaroran committed Dec 19, 2024
1 parent 37d0870 commit c937a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/process/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise

if(rDatas.length > 1){
const thought = rDatas.splice(rDatas.length-2, 1)[0]
rDatas[rDatas.length-1] = `<Thoughts>${thought}</Thoughts>\n\n${rDatas.join('\n')}`
rDatas[rDatas.length-1] = `<Thoughts>${thought}</Thoughts>\n\n${rDatas.join('\n\n')}`
}
control.enqueue({
'0': rDatas[rDatas.length-1],
Expand Down Expand Up @@ -1757,7 +1757,7 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise

if(rDatas.length > 1){
const thought = rDatas.splice(rDatas.length-2, 1)[0]
rDatas[rDatas.length-1] = `<Thoughts>${thought}</Thoughts>\n\n${rDatas.join('\n')}`
rDatas[rDatas.length-1] = `<Thoughts>${thought}</Thoughts>\n\n${rDatas.join('\n\n')}`
}

return {
Expand Down

0 comments on commit c937a65

Please sign in to comment.