mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 22:21:37 +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;
|
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;
|
var time = DateTimeOffset.Now;
|
||||||
this.lastUserPrompt = new ContentText
|
this.lastUserPrompt = new ContentText
|
||||||
{
|
{
|
||||||
Text = request,
|
Text = request,
|
||||||
|
FileAttachments = attachments,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.chatThread!.Blocks.Add(new ContentBlock
|
this.chatThread!.Blocks.Add(new ContentBlock
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user