-
Notifications
You must be signed in to change notification settings - Fork 285
[DRAFT] Implement Vision Capabilities for Azure OpenAI Integration #3634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Introduced new procedures in AOAIChatMessages.Codeunit.al to handle user messages with images from various sources (URL, InStream, MediaSet, Tenant Media, Temp Blob). - Added AOAIImageDetailLevel.Enum.al to define detail levels for image processing. - Implemented AOAIImagesImpl.Codeunit.al for image content preparation and encoding. - Updated app.json to include new modules: BLOB Storage and Base64 Convert.
…f image handling features.
|
Guys, @JesperSchulz any traction here? |
Not really, no. This needs product management resources, which we don't have at the moment |
Very sad:( tbh i don't understand what's the issue with that, as this is a wrapper around official Azure OpenAI API. Many partners need that. Let's make a bit of magic and include this in this fall wave ;) |
2025 wave 2 is completely out of the question, but we could easily release in a minor release, as soon as 2025 wave 2 update 1 in November (not sure if that is realistic either though). I get that many partners need this - we'd like it too. But we need to build things properly. And I understand how you don't see the issue, as we haven't shared them with you. But there are a lot of things which must fall into place before we can move forward with this. Maybe @pborring wants to elaborate 🙂 We can also have a call soon, where I can explain. Let's touch basis on this one soon! |
|
@JesperSchulz, @pborring is there an option that we will come back to this PR? Or this is already solved? Would it be great to be able to handle attachments. |
Summary
This PR adds support for vision-enabled AI models to our Azure OpenAI integration, allowing Business Central to send both text and images to AI models and receive detailed responses about image content.
Technical Implementation
We've extended the
AOAI Chat Messagescodeunit with methods to handle various image sources:All methods convert the images to the format required by the Azure OpenAI API - either direct URLs or base64-encoded data URLs with appropriate MIME types.
Key Features
Usage Examples
Example 1: Using an image URL
Example 2: Using an image from a Record MediaSet field
Example 3: Using an image stream (e.g., from file upload)
Example 4: Using multiple images from a MediaSet
Testing
Comprehensive test coverage has been added with 11 test cases that validate:
Notes
Work Item(s)
Fixes #3633
Fixes AB#578341