Azure-Samples / azureai-assistant-tool

The Azure AI Assistant Tool is experimental Python application and middleware designed to simplify the development, experimentation, testing, and debugging of OpenAI assistants.
MIT License
102 stars 41 forks source link

Image upload fix #43

Closed kaylieee closed 1 month ago

kaylieee commented 2 months ago

Purpose

Does this introduce a breaking change?

The file_message property of the Message and AsyncMessage classes has been changed to file_messages and now returns a list of FileMessage objects. To go through individual file messages you can iterate through file_messages.

The contains_image_file_id method has been removed from the Conversation and AsyncConversation classes. To check if a conversation contains any file with the specified file id, use the new contains_file_id method

[X] Yes
[ ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Other Information