Skip to content

Can you please help me with File upload and read from it in assistant? #22

@TejpallPathak

Description

@TejpallPathak

Hi @JZO001,

my code was working perfectly fine. but now they have decided to work with vector store.
my complete scenario is like below.

upload file then
create assistant with all details
attach this file to current assistant(CreateAssistantFileRequest). (here i was using below code and now its giving false result.)
create the thread.
create MessageResponse
create RunResponse
if run response true then get all MessageData from MessagesService.

after all these i was deleting file and assistant in finally block.

so what to do now to fix this?


var createAssistantFileRequest = new CreateAssistantFileRequest()
{
    AssistantId = assistantId,
    FileId = assistantFileId
};

var createAssistantFileResult = await openAi.AssistantFileService.CreateAsync(createAssistantFileRequest, CancellationToken.None);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions