This PR demonstrates how customers can use any model of their choice in Azure AI Studio to do various inference tasks. The code here is very similar to the code provided in the AOAI Custom Skills folder.
Does this introduce a breaking change?
[ ] Yes
[x] No
Pull Request Type
What kind of change does this Pull Request introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
Test the code
The code here can be tested by running the api-test.http requests in the provided file.
What to Check
Verify that the following are valid
I ran an example to request to show that the image-captioning feature works. The following output is what you should get when you run the request with the provided default payload:
{
"values": [
{
"warnings": null,
"errors": [],
"recordId": "5",
"data": {
"generative-caption": " The image shows a red Tesla Model S electric car driving on a highway. To make this car, the following parts are required:\n\n1. Body: The car's body is made of aluminum, which is lightweight and durable.\n2. Engine: The Tesla Model S uses an electric motor as its primary source of power.\n3. Battery: The car has a lithium-ion battery pack that stores the energy needed to power the electric motor.\n4. Chassis: The car's chassis is made of steel and provides the structural support for the car.\n5. Wheels: The Tesla Model S comes with alloy wheels, which are designed to provide good traction and stability on the road.\n6. Interior: The car's interior is made of high-quality materials and features advanced technology, such as a touchscreen display and a digital dashboard.\n7. Suspension: The car's suspension system is designed to provide a smooth and comfortable ride, even on rough roads.\n8. Tires: The Tesla Model S is equipped with low rolling resistance tires, which help improve the car's range and efficiency.\n9. Brake system: The car's braking system is designed to provide strong stopping power and help maintain the car's stability during deceleration."
}
}
]
}
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
What to Check
Verify that the following are valid
Other Information