external help file | Module Name | online version | schema |
---|---|---|---|
PSOpenAI-help.xml |
PSOpenAI |
2.0.0 |
Gets common parameters that are implicitly used when executing functions.
Get-OpenAIContext
Gets the common parameter context that is set by Set-OpenAIContext. Note: Objects obtained with Get-OpenAIContext are read-only, and changes to their property values are not reflected in the context. To set the context, use Set-OpenAIContext.
PS C:\> Set-OpenAIContext -ApiType 'Azure' -ApiKey 'AZURE_API_KEY' -ApiBase 'https://my-endpoint.openai.azure.com/'
PS C:\> Get-OpenAIContext
ApiKey : System.Security.SecureString
ApiType : Azure
ApiBase : https://my-endpoint.openai.azure.com/
ApiVersion :
AuthType : azure
Organization :
TimeoutSec : 0
MaxRetryCount : 0