Open yoon172 opened 3 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.
Interestingly, file ID removal works if there are more than 1 file IDs attached to the assistant.
Library name and version
Azure.AI.OpenAI.Assistants 1.0.0-beta.4
Describe the bug
UpdateAssistantAsync cannot remove the last fileId attached to the assistant.
Expected behavior
Ex) An assistant that has one fileId attached to it. I should be able to remove this with the UpdateAssistantAsync method with the UpdateAssistantOptions.FileId.remove() .
Actual behavior
The method above does not remove the last fileId after checking the GET assistant endpoint.
Reproduction Steps
Have an assistant with only 1 file ID attached to it. Do a UpdateAssistantAsync with the appropriate assistantId and UpdateAssistantOptions to remove the fileID.
Environment
Dotnet 7.0.2 Rider 2023.2.3.