You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if messages are compatible with all methods that deal with messages. For example if I want to restart conversation with the first message:
constfirstUserMsg=runtime.thread.getState().messages.find(m=>m.role==='user');runtime.switchToNewThread();runtime.thread.append({role: 'system',content: [{type: 'text',text: 'new system message'}],});if(firstUserMsg){runtime.thread.append(firstUserMsg);^^^^^^^^^^^^}
Argument of type 'BaseThreadMessage & MessageCommonProps & { role: "user"; content: ThreadUserContentPart[]; attachments: readonly CompleteAttachment[]; }' is not assignable to parameter of type 'CreateAppendMessage'.
Type 'BaseThreadMessage & MessageCommonProps & { role: "user"; content: ThreadUserContentPart[]; attachments: readonly CompleteAttachment[]; }' is not assignable to type '{ parentId?: string | null | undefined; role?: "system" | "user" | "assistant" | undefined; content: [TextContentPart] | CoreUserContentPart[] | CoreAssistantContentPart[]; attachments?: readonly CompleteAttachment[] | undefined; }'.
Types of property 'content' are incompatible.
Type 'ThreadUserContentPart[]' is not assignable to type '[TextContentPart] | CoreUserContentPart[] | CoreAssistantContentPart[]'.
Type 'ThreadUserContentPart[]' is not assignable to type 'CoreUserContentPart[] | CoreAssistantContentPart[]'.
Type 'ThreadUserContentPart[]' is not assignable to type 'CoreUserContentPart[]'.
Type 'ThreadUserContentPart' is not assignable to type 'CoreUserContentPart'.
Type 'UIContentPart' is not assignable to type 'CoreUserContentPart'.
Property 'audio' is missing in type 'UIContentPart' but required in type 'Unstable_AudioContentPart'.ts(2345)
AssistantTypes.d.ts(14, 5): 'audio' is declared here.
The text was updated successfully, but these errors were encountered:
Would be great if messages are compatible with all methods that deal with messages. For example if I want to restart conversation with the first message:
The text was updated successfully, but these errors were encountered: