From a36f7e9572de185ec47342ac817115ee54003c07 Mon Sep 17 00:00:00 2001 From: Charles Twardy <925782+ctwardy@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:56:34 -0400 Subject: [PATCH] Clarify "deployments" in azure.md & s/azure/openai. 1) Clarified use of deployment name for `engine` in Azure. 2) As of Oct 15 stable release, it seems Continue no longer recognizes "azure" as a `provider` but only as an `apiType`. I'm sure of this for the gpt-4o chat model. I'm assuming it follows for the rest. --- .../model-providers/top-level/azure.md | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/docs/docs/customize/model-providers/top-level/azure.md b/docs/docs/customize/model-providers/top-level/azure.md index 295b7cdc8..2011a62cb 100644 --- a/docs/docs/customize/model-providers/top-level/azure.md +++ b/docs/docs/customize/model-providers/top-level/azure.md @@ -10,13 +10,13 @@ We recommend configuring **GPT-4o** as your chat model. ```json title="config.json" "models": [{ "title": "GPT-4o", - "provider": "azure", + "provider": "openai", // As of Oct 15, "azure" isn't recognized + "apiType": "azure", // Needed to construct Azure-style URL "model": "gpt-4o", "apiBase": "", - "engine": "", - "apiVersion": "", - "apiType": "azure", - "apiKey": "" + "engine": "", // Your deployment, eg "gpt4o-beta" + "apiVersion": "", // Typically a date like "2024-06-01" + "apiKey": "" // If you use subscription key, try using Azure gateway to rename it apiKey }] ``` @@ -27,13 +27,13 @@ We recommend configuring **Codestral** as your autocomplete model. ```json title="config.json" "tabAutocompleteModel": [{ "title": "Codestral", - "provider": "azure", + "provider": "openai", // As of Oct 15, "azure" isn't recognized + "apiType": "azure", // Needed to construct Azure-style URL "model": "codestral-latest", "apiBase": "", - "engine": "", - "apiVersion": "", - "apiType": "azure", - "apiKey": "" + "engine": "", // Your deployment, eg "codestral-small" + "apiVersion": "", // Typically a date like "2024-06-01" + "apiKey": "" // If you use subscription key, try using Azure gateway to rename it apiKey }] ``` @@ -43,13 +43,13 @@ We recommend configuring **text-embedding-3-large** as your embeddings model. ```json title="config.json" "embeddingsProvider": [{ - "provider": "azure", + "provider": "openai", // As of Oct 15, "azure" isn't recognized + "apiType": "azure", // Needed to construct Azure-style URL "model": "text-embedding-3-large", "apiBase": "", - "engine": "", - "apiVersion": "", - "apiType": "azure", - "apiKey": "" + "engine": "", // Your deployment, eg "codestral-small" + "apiVersion": "", // Typically a date like "2024-06-01" + "apiKey": "" // If you use subscription key, try using Azure gateway to rename it apiKey }] ``` @@ -75,16 +75,22 @@ Azure OpenAI requires a handful of additional parameters to be configured, such To find this information in _Azure AI Studio_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_. -For example, a Target URI of `` would map to the following: +For example, a Target URI of: +``` +https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``````````` ****************** +``` + +would map to the following: ```json { "title": "GPT-4o Azure", "model": "gpt-4o", - "provider": "azure", - "apiBase": "https://just-an-example.openai.azure.com", + "provider": "openai", "apiType": "azure", - "engine": "gpt-4o", + "apiBase": "https://just-an-example.openai.azure.com", + "engine": "gpt-4o-july", "apiVersion": "2023-03-15-preview", "apiKey": "" }