Skip to content

Commit

Permalink
Update available Azure API versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ccreutzi committed Sep 16, 2024
1 parent 9bed1a8 commit 4101015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions +llms/+azure/apiVersions.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

% Copyright 2024 The MathWorks, Inc.
versions = [...
"2024-08-01-preview", ...
"2024-07-01-preview", ...
"2024-05-01-preview", ...
"2024-04-01-preview", ...
"2024-03-01-preview", ...
"2024-06-01", ...
"2024-02-01", ...
"2023-05-15", ...
];
Expand Down
5 changes: 2 additions & 3 deletions azureChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
% Tools - A list of tools the model can call.
%
% API Version - The API version to use for this model.
% "2024-02-01" (default) | "2023-05-15" | "2024-05-01-preview" | ...
% "2024-04-01-preview" | "2024-03-01-preview"
% "2024-06-01" (default) | "2024-02-01" | "2024-08-01-preview" | "2024-05-01-preview" | ...
%
%
%
Expand Down Expand Up @@ -107,7 +106,7 @@
nvp.Deployment (1,1) string {mustBeNonzeroLengthTextScalar}
nvp.APIKey {mustBeNonzeroLengthTextScalar}
nvp.Tools (1,:) {mustBeA(nvp.Tools, "openAIFunction")} = openAIFunction.empty
nvp.APIVersion (1,1) string {mustBeAPIVersion} = "2024-02-01"
nvp.APIVersion (1,1) string {mustBeAPIVersion} = "2024-06-01"
nvp.Temperature {llms.utils.mustBeValidTemperature} = 1
nvp.TopP {llms.utils.mustBeValidProbability} = 1
nvp.StopSequences {llms.utils.mustBeValidStop} = {}
Expand Down

0 comments on commit 4101015

Please sign in to comment.