Queries Regarding Azure OpenAI Integration: DALL-E & GPT-Vision Availability, Document & Image Upload Issues, and Translation Services

Niket Kumar Singh 200 Reputation points
2024-05-08T07:09:30.22+00:00

Question 1: Availability of DALL-E and GPT-Vision in India

When can we expect DALL-E and GPT-Vision to become available in India?

Question 2: Document Upload Issue with Azure OpenAI

We've encountered an issue uploading documents on Chat Playground and the web app using Azure OpenAI. While we can do it on Chat Playground, we face difficulties when integrating with the web app. Could you please provide guidance on resolving this issue?

Question 3: Discrepancy in Image Upload between Chat Playground and Web App

In Chat Playground, we're able to upload images for the GPT-Vision model. However, we've noticed that this feature is missing in the web app. Is there a way to enable image uploading in the web app after integration with Chat Playground?

Question 4: Azure Translation Services for English Blogs

Are there any Azure services available for translating English blogs into local languages, both in real-time and offline scenarios?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
352 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,340 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,463 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 28,741 Reputation points
    2024-05-08T11:40:16.1333333+00:00

    Niket Kumar Singh Greetings & Welcome to Microsoft Q&A forum!

    Please see below answers to your queries.

    Question 1: Availability of DALL-E and GPT-Vision in India When can we expect DALL-E and GPT-Vision to become available in India?

    Unfortunately, there is no exact ETA of model availability. I would suggest you, kindly keep an eye on the What's new in Azure OpenAI Service and Azure OpenAI Service models availability pages for more updates.

    Question 2: Document Upload Issue with Azure OpenAI We've encountered an issue uploading documents on Chat Playground and the web app using Azure OpenAI. While we can do it on Chat Playground, we face difficulties when integrating with the web app. Could you please provide guidance on resolving this issue?

    Could you share more details about the issue? What is the exact error message you are receiving. Please collect the HAR traces while reproducing the issue and share it in the private message incase if contains your PII data.

    Question 3: Discrepancy in Image Upload between Chat Playground and Web App In Chat Playground, we're able to upload images for the GPT-Vision model. However, we've noticed that this feature is missing in the web app. Is there a way to enable image uploading in the web app after integration with Chat Playground?

    Can you share more details about the model and version?

    You can try incorporating the below piece of code in your deployed web and see if that helps.

    import os
    import requests
    import base64
    
    # Configuration
    GPT4V_KEY = "YOUR_API_KEY"
    IMAGE_PATH = "YOUR_IMAGE_PATH"
    encoded_image = base64.b64encode(open(IMAGE_PATH, 'rb').read()).decode('ascii')
    headers = {
        "Content-Type": "application/json",
        "api-key": GPT4V_KEY,
    }
    
    # Payload for the request
    payload = {
      "messages": [
        {
          "role": "system",
          "content": [
            {
              "type": "text",
              "text": "You are an AI assistant that helps people find information."
            }
          ]
        }
      ],
      "temperature": 0.7,
      "top_p": 0.95,
      "max_tokens": 800
    }
    
    GPT4V_ENDPOINT = "https://ashaustraliaeastopenai.openai.azure.com/openai/deployments/gpt4vision/chat/completions?api-version=2024-02-15-preview"
    
    # Send request
    try:
        response = requests.post(GPT4V_ENDPOINT, headers=headers, json=payload)
        response.raise_for_status()  # Will raise an HTTPError if the HTTP request returned an unsuccessful status code
    except requests.RequestException as e:
        raise SystemExit(f"Failed to make the request. Error: {e}")
    
    # Handle the response as needed (e.g., print or process)
    print(response.json())
    
    

    You can customize the app's frontend and backend logic. Please see the source code for the web app, and more information on GitHub.

    Question 4: Azure Translation Services for English Blogs Are there any Azure services available for translating English blogs into local languages, both in real-time and offline scenarios?

    Azure Cognitive Services provides a Translator service that can translate text from one language to another. You can use this service to translate English blogs into local languages in both real-time and offline scenarios.

    Please see Azure AI Translator for more details.

    Do let me know if you have any further queries.