mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🤖 chore: Improve Assistants Run Logging (#1801)
This commit is contained in:
parent
9d3215dcaa
commit
60b1d1332c
3 changed files with 19 additions and 14 deletions
|
|
@ -470,13 +470,14 @@ async function processMessages(openai, messages = []) {
|
|||
}
|
||||
|
||||
text += (content.text?.value ?? '') + ' ';
|
||||
logger.debug('[processMessages] Processing message:', { value: text });
|
||||
|
||||
// Process annotations if they exist
|
||||
if (!content.text?.annotations) {
|
||||
if (!content.text?.annotations?.length) {
|
||||
continue;
|
||||
}
|
||||
|
||||
logger.debug('Processing annotations:', content.text.annotations);
|
||||
logger.debug('[processMessages] Processing annotations:', content.text.annotations);
|
||||
for (const annotation of content.text.annotations) {
|
||||
logger.debug('Current annotation:', annotation);
|
||||
let file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue