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:
parent
4124c214eb
commit
a36f7e9572
1 changed files with 25 additions and 19 deletions
|
|
@ -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>"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue