Azure Cognitive Services (Azure OpenAI) Models

To work with models through the Azure OpenAI service, follow these steps:

  1. Go to https://portal.azure.com and sign in.

  2. Search and select the Azure OpenAI service.

  3. Click Create a resource and follow the steps to create the resource.

  4. Go to the resource you created and select Keys and Endpoint.

    1. Copy those items into your config.js file as endpoint and apiKey properties of your model.

    2. Alternatively, instead of the endpoint property, you can also set the resource property based on the resource name you chose. With this property set, the endpoint will be constructed automatically.

    3. Set the provider property to “openai”.

    4. Set the cloud property to “azure”

  5. Go to Manage Deployments.

  6. Select Create Deployment.

  7. Select desired model and model version; then give it a name. Supply this name as the model property in your config.js file. Ensure the model and version you select supports function calling. It may take a few minutes before the model is fully deployed and you are ready to try it.

For example:

models: { "Azure OpenAI GPT-3.5": { provider: "openai", cloud: "azure", model: "azure-gpt-35-0613", resource: "profound-openai", apiKey: "......", apiVersion: "2023-12-01-preview" } }