Skip to content

How to enable Vision enhancements for Azure Open AI? #1433

Answered by ishaan-jaff
kishorek asked this question in Q&A
Discussion options

You must be logged in to vote

Here's how (live on 1.17.6+): https://docs.litellm.ai/docs/providers/azure#usage---with-azure-vision-enhancements

import os 
from litellm import completion

os.environ["AZURE_API_KEY"] = "your-api-key"

# azure call
response = completion(
    model = "azure/<your deployment name>", 
    messages=[
        {
            "role": "user",
            "content": [
                            {
                                "type": "text",
                                "text": "What’s in this image?"
                            },
                            {
                                "type": "image_url",
                                "image_url": {
                                "…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ishaan-jaff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants