mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
⚠️ refactor: Use Error Content Part Instead Of Throwing Error for Agents (#6262)
This commit is contained in:
parent
3e3dfe5bad
commit
d6ab769b80
4 changed files with 45 additions and 2 deletions
|
|
@ -211,6 +211,8 @@ const formatAgentMessages = (payload) => {
|
|||
} else if (part.type === ContentTypes.THINK) {
|
||||
hasReasoning = true;
|
||||
continue;
|
||||
} else if (part.type === ContentTypes.ERROR) {
|
||||
continue;
|
||||
} else {
|
||||
currentContent.push(part);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue