mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 22:41:36 +00:00
Allow file attachments for assistants
This commit is contained in:
parent
a4e523aec3
commit
7a47a2a450
@ -217,12 +217,13 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
|
||||
return chatId;
|
||||
}
|
||||
|
||||
protected DateTimeOffset AddUserRequest(string request, bool hideContentFromUser = false)
|
||||
protected DateTimeOffset AddUserRequest(string request, bool hideContentFromUser = false, params List<FileAttachment> attachments)
|
||||
{
|
||||
var time = DateTimeOffset.Now;
|
||||
this.lastUserPrompt = new ContentText
|
||||
{
|
||||
Text = request,
|
||||
FileAttachments = attachments,
|
||||
};
|
||||
|
||||
this.chatThread!.Blocks.Add(new ContentBlock
|
||||
|
||||
Loading…
Reference in New Issue
Block a user