Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net: Update to Azure.AI.OpenAI version 1.0.0-beta.6 #2090

Merged
merged 3 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.5" />
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.6" />
<PackageVersion Include="Azure.Identity" Version="1.9.0" />
<PackageVersion Include="Azure.Search.Documents" Version="11.5.0-beta.3" />
<PackageVersion Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private static ChatCompletionsOptions CreateChatCompletionsOptions(ChatRequestSe
NucleusSamplingFactor = (float?)requestSettings.TopP,
FrequencyPenalty = (float?)requestSettings.FrequencyPenalty,
PresencePenalty = (float?)requestSettings.PresencePenalty,
ChoicesPerPrompt = requestSettings.ResultsPerPrompt
ChoiceCount = requestSettings.ResultsPerPrompt
};

foreach (var keyValue in requestSettings.TokenSelectionBiases)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ namespace Microsoft.SemanticKernel.AI.ChatCompletion;
/// <summary>
/// The role that instructs or sets the behavior of the assistant.
/// </summary>
public static readonly AuthorRole System = new("System");
public static readonly AuthorRole System = new("system");
/// <summary>
/// The role that provides responses to system-instructed, user-prompted input.
/// </summary>
public static readonly AuthorRole Assistant = new("Assistant");
public static readonly AuthorRole Assistant = new("assistant");
/// <summary>
/// The role that provides input for chat completions.
/// </summary>
public static readonly AuthorRole User = new("User");
public static readonly AuthorRole User = new("user");

/// <summary>
/// Gets the label associated with this AuthorRole.
Expand Down
Loading