mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
📤 refactor: Utilize intermediateReply when message.content is Empty
This commit is contained in:
parent
ee97179edb
commit
d8038e3b19
1 changed files with 8 additions and 0 deletions
|
|
@ -1097,6 +1097,14 @@ ${convo}
|
|||
|
||||
logger.debug('[OpenAIClient] chatCompletion response', chatCompletion);
|
||||
|
||||
if (!message?.content?.trim() && intermediateReply.length) {
|
||||
logger.debug(
|
||||
'[OpenAIClient] chatCompletion: using intermediateReply due to empty message.content',
|
||||
{ intermediateReply },
|
||||
);
|
||||
return intermediateReply;
|
||||
}
|
||||
|
||||
return message.content;
|
||||
} catch (err) {
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue