Skip to content

v0.4.1-alpha release

Pre-release
Pre-release
Compare
Choose a tag to compare
@kaylieee kaylieee released this 10 Jun 17:55
· 45 commits to main since this release
af52e21

Purpose

  • Support added for image attachments and image URLs as input for Assistant Tool and SDK middleware library. Image input support is added for both AssistantClient(OpenAI assistant API based) and ChatAssistantClient (OpenAI chat completion API based) types.
    • With Assistant Tool, images can be attached as user input by copy pasting the image into the text input or by right clicking the thread list item and adding the image file.
  • Added new Attachment class to make use of attachments easier
  • Change ConversationMessage and AsyncConversationMessage classes to support multiple ImageMessage instances per instance.
  • Removed image_messages parameter from Conversation and AsyncConversation classes.
  • Version updated to 0.4.1-alpha

Does this introduce a breaking change?

There is a change in create_conversation_thread_message method for ConversationThreadClient class for attachments, which now takes a list of Attachment instances instead of dictionary. If you were not using attachments, there should not be a break.

There is a change in the ConversationMessage and AsyncConversationMessage classes such that image_message parameter is now a list, image_messages, of ImageMessage instances instead of a single ImageMessage.

The image_messages parameter of the Conversation and AsyncConversation classes has been removed. To go through image messages within a conversation, you can go through all messages from the messages property and look at each messages image messages.

[X] Yes
[ ] No

Release Type

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

Other Information

  • Please install new version azure_ai_assistant-0.4.1a1-py3-none-any.whl for middleware SDK from this release. See the README for installation details.
  • If using Mac, image copy and paste does not work due to potential pyside6 issue