Skip to main content

    How to use Azure OpenAI API

    Azure Logo

    You can use Azure OpenAI on YNO AI by adding a Custom Model as follows:

    Get an Azure OpenAI account

    If you haven't already, you must register for an Azure OpenAI Account. You can create one here:

    https://oai.azure.com/

    Azure OpenAI Portal

    Get a Deployment, Endpoint, and API Key

    Go to "Deployments" and create a new deployment with a model of your choice.

    Azure Deployments

    Go to the "Chat" playground and click "View Code" to get your Endpoint and Key.

    Azure Chat Playground
    Azure View Code

    Create a custom model on YNO AI

    Create a new Custom Model as follows:

    1. Click Add Custom Model
    2. Enter any name.
    3. Enter the exact endpoint (including the ?apiVersion part).

      Important: there are many types of endpoint on Azure OpenAI. Make sure you use the correct one that contains "/chats/completions".

    4. Enter the Model ID and context length
    5. Add a custom header row, then enter api-key and the API key in the value textbox.
    Azure Custom Model Setup
    1. Click "Test" and verify that the endpoint is working.
    2. Click "Add Model".

    Chat with Azure OpenAI

    You can now select the Azure OpenAI model and chat with it.