-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Azure OpenAI Connector - Adding new max completion tokens overr…
…ide parameter (#10533) ### Motivation and Context - Fixes #10523 Azure SDK Connector only uses the new `max completion tokens` parameter if enabled thru a flag of the `ChatCompletionOptions` via experimental temporary extension method, to enable such setting thru Semantic Kernel, we added also a temporary experimental flag to the `AzurePromptExecutionSettings.SetNewMaxCompletionTokensEnabled ` which when `TRUE` will trigger the expected behavior. (default = false). See: [Azure OpenAI Changelog](https://github.com/Azure/azure-sdk-for-net/blob/2fb24b98e5bf4b1277ab69181bf650a4afbb4d20/sdk/openai/Azure.AI.OpenAI/CHANGELOG.md?plain=1#L34) Usage: ```csharp var result = await service.GetChatMessageContentAsync("my prompt", new AzureOpenAIPromptExecutionSettings { SetNewMaxCompletionTokensEnabled = true, MaxTokens = 1000, }); ```
- Loading branch information
1 parent
d350b83
commit 5680206
Showing
4 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters