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.
This commit is contained in:
Charles Twardy 2024-10-15 14:56:34 -04:00 • committed by GitHub
parent 4124c214eb
commit a36f7e9572
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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": "<YOUR_DEPLOYMENT_BASE>",
"engine": "<YOUR_ENGINE>",
"apiVersion": "<YOUR_API_VERSION>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
"engine": "<YOUR_ENGINE>", // Your deployment, eg "gpt4o-beta"
"apiVersion": "<YOUR_API_VERSION>", // Typically a date like "2024-06-01"
"apiKey": "<MY_API_KEY>" // 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": "<YOUR_DEPLOYMENT_BASE>",
"engine": "<YOUR_ENGINE>",
"apiVersion": "<YOUR_API_VERSION>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
"engine": "<YOUR_ENGINE>", // Your deployment, eg "codestral-small"
"apiVersion": "<YOUR_API_VERSION>", // Typically a date like "2024-06-01"
"apiKey": "<MY_API_KEY>" // 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": "<YOUR_DEPLOYMENT_BASE>",
"engine": "<YOUR_ENGINE>",
"apiVersion": "<YOUR_API_VERSION>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
"engine": "<YOUR_ENGINE>", // Your deployment, eg "codestral-small"
"apiVersion": "<YOUR_API_VERSION>", // Typically a date like "2024-06-01"
"apiKey": "<MY_API_KEY>" // 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 `<https://just-an-example.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2023-03-15-preview>` 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": "<MY_API_KEY>"
}