Skip to content

Commit

Permalink
correct o1 model name
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Dec 21, 2024
1 parent 1df1a2a commit 76f1bb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static ChatClient CreateChatClient(Model model)
ArgumentException.ThrowIfNullOrWhiteSpace(model.ModelKey.Secret, nameof(model.ModelKey.Secret));

AzureOpenAIClientOptions options = new();
if (model.ModelReference.Name == "o1")
if (model.ModelReference.Name == "o1-2024-12-17")
{
// o1 only supports api version: 2024-12-01-preview
options
Expand Down

0 comments on commit 76f1bb4

Please sign in to comment.