You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,6 +56,12 @@ public Settings(ConfigData configData)
47
56
:!noEndpoint&&!noDeployment
48
57
?EndpointType.AzureOpenAI
49
58
:thrownewInvalidOperationException($"Invalid setting: {(noEndpoint?"Endpoint":"Deployment")} key is missing. To use Azure OpenAI service, please specify both the 'Endpoint' and 'Deployment' keys. To use OpenAI service, please ignore both keys.");
59
+
60
+
// EntraID authentication is only supported for Azure OpenAI
"SystemPrompt": "1. You are a helpful and friendly assistant with expertise in PowerShell scripting and command line.\n2. Assume user is using the operating system `Windows 11` unless otherwise specified.\n3. Use the `code block` syntax in markdown to encapsulate any part in responses that is code, YAML, JSON or XML, but not table.\n4. When encapsulating command line code, use '```powershell' if it's PowerShell command; use '```sh' if it's non-PowerShell CLI command.\n5. When generating CLI commands, never ever break a command into multiple lines. Instead, always list all parameters and arguments of the command on the same line.\n6. Please keep the response concise but to the point. Do not overexplain."
311
+
},
312
+
313
+
// To use Azure OpenAI service with Entra ID authentication:
314
+
// - Set `Endpoint` to the endpoint of your Azure OpenAI service.
315
+
// - Set `Deployment` to the deployment name of your Azure OpenAI service.
316
+
// - Set `ModelName` to the name of the model used for your deployment, e.g. "gpt-4o".
317
+
// - Set `AuthType` to "EntraID" to use Azure AD credentials.
318
+
// For example:
319
+
{
320
+
"Name": "ps-az-entraId",
321
+
"Description": "A GPT instance with expertise in PowerShell scripting using Entra ID authentication.",
322
+
"Endpoint": "<insert your Azure OpenAI endpoint>",
323
+
"Deployment": "<insert your deployment name>",
324
+
"ModelName": "gpt-4o",
325
+
"AuthType": "EntraID",
326
+
"SystemPrompt": "You are a helpful and friendly assistant with expertise in PowerShell scripting and command line."
0 commit comments