Feat: Send data to compare the performance of different models' answers #3221 (#9477)

### What problem does this PR solve?

Feat: Send data to compare the performance of different models' answers
#3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-14 16:57:35 +08:00
committed by GitHub
parent f2806a8332
commit 9cd09488ca
8 changed files with 355 additions and 34 deletions

View File

@ -202,7 +202,7 @@ export const useSendMessageWithSse = (
[Authorization]: getAuthorization(),
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
body: JSON.stringify(omit(body, 'chatBoxId')),
signal: controller?.signal || sseRef.current?.signal,
});
@ -228,6 +228,7 @@ export const useSendMessageWithSse = (
setAnswer({
...d,
conversationId: body?.conversation_id,
chatBoxId: body.chatBoxId,
});
}
} catch (e) {