mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-16 16:01:52 +03:00
🪙 fix: Streaming Response Token Issue (#3323)
* chore: use NEW_CONVO constant * fix: token object assign issue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user