Fix: Missing `signature` and `toolSignatures` fields in `ChatCompletionService` streaming state (#5439) * Fix: Add signature and toolSignatures fields to ChatCompletionService streaming state object * fix: pass images array to getStreamingReply --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

f4f390f325f6d5d301c8d3672cabca93000a1070

Wolfsblvt <wolfsblvt@gmail.com>

Signed
1 files changed, +1 -1Ignore whitespace
public/scripts/custom-request.js+1 -1
@@ -505,7 +505,7 @@ export class ChatCompletionService {
505 return async function* streamData() {505 return async function* streamData() {
506 let text = '';506 let text = '';
507 const swipes = [];507 const swipes = [];
508 const state = { reasoning: '', image: '' };508 const state = { reasoning: '', images: [], signature: '', toolSignatures: {} };
509 while (true) {509 while (true) {
510 const { done, value } = await reader.read();510 const { done, value } = await reader.read();
511 if (done) return;511 if (done) return;