Date | Author | Title | Type | Link |
---|---|---|---|---|
4/2023 | Mikey Bronowski | A Brief Introduction to PowerShellAI: An Intelligent Command Line | Article | https://www.sqlservercentral.com/articles/a-brief-introduction-to-powershellai-an-intelligent-command-line |
4/2023 | Darren J Robinson | Generative AI ChatGPT with PowerShell | Post | https://blog.darrenjrobinson.com/generative-ai-chatgpt-with-powershell/ |
4/2023 | Trond E Haavarstein | Win32App, Intune | Tweet | https://twitter.com/xenappblog/status/1651893224171077632?s=20 |
5/2023 | PowerShellMichael | The PowerShellAI Module! Let's Automate! | Tweet | https://www.youtube.com/watch?v=UFY5Ynjqg2c |
5/2023 | Juergen Klaassen | JumpCloud PowerShell Module and the PowerShellAI Module | Post | https://community.jumpcloud.com/t5/community-scripts/experimenting-with-the-jumpcloud-powershell-module-in/m-p/2777/highlight/true#M230 |
5/2023 | Merlijn Van Waeyenberghe | GPT - Your AI Scripting Buddy | Conference | https://mms2023atmoa.sched.com/event/1LS3Y/gpt-your-ai-scripting-buddy |
5/2023 | Use ChatGPT OpenAI |
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
class Bot { | |
[string] $Convo | |
[string] $Name | |
[string] $Context | |
[object] $Client | |
[object[]] $History | |
Bot([string] $convo, [string] $name, [string] $context, [object] $client, [object[]] $history) { | |
$this.Convo = $convo | |
$this.Name = $name |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function prompt { | |
if (Get-Command Test-ChatInProgress -ErrorAction SilentlyContinue) { | |
$filler = '' | |
if (Test-ChatInProgress) { | |
$Provider = Get-ChatAPIProvider | |
if ($Provider -eq 'AzureOpenAI') { | |
$model = (Get-AzureOpenAIOptions)['DeploymentName'] | |
} | |
else { | |
$model = (Get-ChatSessionOptions)['model'] |
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
function Invoke-ExcelTemplate { | |
<# | |
.SYNOPSIS | |
Generates an Excel spreadsheet based on a given query. | |
.DESCRIPTION | |
The Invoke-ExcelTemplate function generates an Excel spreadsheet based on a given query. The function takes a single parameter, $q, which represents the query to be used for generating the spreadsheet. | |
.PARAMETER q | |
The query to be used for generating the spreadsheet. |
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
# Install-Module PowerShellAI | |
function cosine_similarity { | |
param( | |
[Parameter(Mandatory = $true)] | |
[double[]]$a, | |
[Parameter(Mandatory = $true)] | |
[double[]]$b | |
) |
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
<# | |
Aims to grow the understanding of using OpenAI in PoweShell by providing an example of an implementation and references | |
#> | |
function Invoke-OpenAI { | |
<# | |
.SYNOPSIS | |
Convert natural language commands into commands in PowerShell | |
.EXAMPLE |
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
function Invoke-Speak { | |
param($msg) | |
Add-Type -AssemblyName System.Speech | |
$speaker = New-Object System.Speech.Synthesis.SpeechSynthesizer | |
$speaker.Speak($msg) | |
} | |
function getmessage { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function psncal { | |
<# | |
.SYNOPSIS | |
Print the calendar vertically i.e. the weekdays will be shown in a column, not in a row | |
.EXAMPLE | |
psncal | |
.EXAMPLE | |
psncal 1 |