Last active
April 26, 2023 00:20
-
-
Save darrenjrobinson/c6ab46fa524e9a202a035e58d95f98f7 to your computer and use it in GitHub Desktop.
PowerShellAI OpenAI Graphical User Interface. Associated blogpost https://blog.darrenjrobinson.com/generative-ai-chatgpt-with-powershell/
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
# 1. Import the OpenAI API Key from the local securely exported credential | |
$chatGPTCred = Import-Clixml .\chatGPTAPIKey.xml | |
# 2. Use the Set-OpenAIKey cmdlet to take the secure credential and set the OpenAIKey environment variable | |
Set-OpenAIKey -Key $chatGPTCred.Password | |
# 3. Import the PowerShellAI Module | |
Import-Module PowerShellAI | |
# 4. Start the GUI | |
.\Invoke-GenerateContent.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment