mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🪙 fix: Streaming Response Token Issue (#3323)
* chore: use NEW_CONVO constant * fix: token object assign issue
This commit is contained in:
parent
326069d7a6
commit
5ef71a7a36
7 changed files with 5 additions and 7 deletions
|
|
@ -19,8 +19,7 @@ const createOnProgress = ({ generation = '', onProgress: _onProgress }) => {
|
|||
|
||||
const basePayload = Object.assign({}, base, { text: tokens || '' });
|
||||
|
||||
const progressCallback = (partial, { res, text, ...rest }) => {
|
||||
let chunk = partial === text ? '' : partial;
|
||||
const progressCallback = (chunk, { res, ...rest }) => {
|
||||
basePayload.text = basePayload.text + chunk;
|
||||
|
||||
const payload = Object.assign({}, basePayload, rest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue