OpenAIPromptExecutionSettings.FromExecutionSettings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new settings object with the values from another settings object.
public static Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIPromptExecutionSettings FromExecutionSettings (Microsoft.SemanticKernel.PromptExecutionSettings? executionSettings, int? defaultMaxTokens = default);
static member FromExecutionSettings : Microsoft.SemanticKernel.PromptExecutionSettings * Nullable<int> -> Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIPromptExecutionSettings
Public Shared Function FromExecutionSettings (executionSettings As PromptExecutionSettings, Optional defaultMaxTokens As Nullable(Of Integer) = Nothing) As OpenAIPromptExecutionSettings
Parameters
- executionSettings
- PromptExecutionSettings
Template configuration
Returns
An instance of OpenAIPromptExecutionSettings