mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
refactor(addImages): use in functions agent response and assure generated images are included in the response (#1120)
This commit is contained in:
parent
5c1e44eff7
commit
af69763103
3 changed files with 137 additions and 7 deletions
|
@ -357,6 +357,7 @@ If your reverse proxy is compatible to OpenAI specs in every other way, it may s
|
|||
const trimmedPartial = opts.getPartialText().replaceAll(':::plugin:::\n', '');
|
||||
responseMessage.text =
|
||||
trimmedPartial.length === 0 ? `${partialText}${this.result.output}` : partialText;
|
||||
addImages(this.result.intermediateSteps, responseMessage);
|
||||
await this.generateTextStream(this.result.output, opts.onProgress, { delay: 5 });
|
||||
return await this.handleResponseMessage(responseMessage, saveOptions, user);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue