Partager via


AzureOpenAIPromptExecutionSettings.FromExecutionSettings Method

Definition

Create a new settings object with the values from another settings object.

public static Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAIPromptExecutionSettings FromExecutionSettings (Microsoft.SemanticKernel.PromptExecutionSettings? executionSettings, int? defaultMaxTokens = default);
static member FromExecutionSettings : Microsoft.SemanticKernel.PromptExecutionSettings * Nullable<int> -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAIPromptExecutionSettings
Public Shared Function FromExecutionSettings (executionSettings As PromptExecutionSettings, Optional defaultMaxTokens As Nullable(Of Integer) = Nothing) As AzureOpenAIPromptExecutionSettings

Parameters

executionSettings
PromptExecutionSettings

Template configuration

defaultMaxTokens
Nullable<Int32>

Default max tokens

Returns

An instance of OpenAIPromptExecutionSettings

Applies to