mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-22 02:14:10 +01:00
fix: handle text parts with tool_call_ids and empty text
This commit is contained in:
parent
0c04018bb3
commit
350d709763
4 changed files with 17 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ export namespace Agents {
|
|||
export type MessageContentText = {
|
||||
type: ContentTypes.TEXT;
|
||||
text: string;
|
||||
tool_call_ids?: string[];
|
||||
};
|
||||
|
||||
export type MessageContentImageUrl = {
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ export type ContentPart = (
|
|||
|
||||
export type TMessageContentParts =
|
||||
| { type: ContentTypes.ERROR; text: Text & PartMetadata }
|
||||
| { type: ContentTypes.TEXT; text: string | (Text & PartMetadata) }
|
||||
| { type: ContentTypes.TEXT; text: string; tool_call_ids?: string[] | (Text & PartMetadata) }
|
||||
| {
|
||||
type: ContentTypes.TOOL_CALL;
|
||||
tool_call: (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue