Skip to content

Commit d799312

Browse files
committed
Update azure default api
* Update default Azure API * Remove deprecated models
1 parent 71e0282 commit d799312

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

+llms/+azure/apiVersions.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
function versions = apiVersions
22
%VERSIONS - supported azure API versions
33

4-
% Copyright 2024 The MathWorks, Inc.
4+
% Copyright 2024-2025 The MathWorks, Inc.
55
versions = [...
6+
"2025-04-01-preview", ...
7+
"2025-03-01-preview", ...
68
"2025-02-01-preview", ...
79
"2025-01-01-preview", ...
810
"2024-12-01-preview", ...

+llms/+openai/models.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"gpt-4-1106-preview",...
1616
"gpt-3.5-turbo","gpt-3.5-turbo-0125","gpt-3.5-turbo-1106",...
1717
"gpt-3.5-turbo-16k",...
18-
"o1-mini","o1-mini-2024-09-12",...
1918
"o1","o1-2024-12-17",...
2019
"o3-mini", "o3-mini-2025-01-31",...
2120
"o4-mini", "o4-mini-2025-04-16",...

azureChat.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
%
5959
% Tools - A list of tools the model can call.
6060
%
61-
% API Version - The API version to use for this model.
62-
% "2024-06-01" (default) | "2024-02-01" | "2024-08-01-preview" | "2024-05-01-preview" | ...
61+
% APIVersion - The API version to use for this model.
62+
% "2025-04-01-preview" (default) | "2025-03-01-preview" | "2024-10-21" | ...
6363
%
6464
%
6565
%
@@ -112,7 +112,7 @@
112112
nvp.DeploymentID (1,1) string {llms.utils.mustBeNonzeroLengthTextScalar}
113113
nvp.APIKey {llms.utils.mustBeNonzeroLengthTextScalar}
114114
nvp.Tools (1,:) {mustBeA(nvp.Tools, "openAIFunction")} = openAIFunction.empty
115-
nvp.APIVersion (1,1) string {mustBeAPIVersion} = "2024-10-21"
115+
nvp.APIVersion (1,1) string {mustBeAPIVersion} = "2025-04-01-preview"
116116
nvp.Temperature {llms.utils.mustBeValidTemperature} = 1
117117
nvp.TopP {llms.utils.mustBeValidProbability} = 1
118118
nvp.StopSequences {llms.utils.mustBeValidStop} = {}

doc/functions/azureChat.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ If you set the response format to `"json"`, then the generated output is a forma
205205
To configure the format of the generated JSON file, describe the format using natural language and provide it to the model either in the system prompt or as a user message. The prompt or message describing the format must contain the word `"json"` or `"JSON"`.
206206

207207

208-
The JSON response format is not supported for these models:
209-
210-
- `"o1-mini"`
211-
212208
#### Structured Output
213209

214210

doc/functions/generate.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ The JSON response format is not supported for these models:
193193

194194
- `"gpt-4"`
195195
- `"gpt-4-0613"`
196-
- `"o1-mini"`
197196

198197
#### Structured Output
199198

0 commit comments

Comments
 (0)