- Thank you Kris Borowinski
- On PS 6 and higher use Invoke-RestMethod with secure Token
- Thank you to Pieter Jan Geutjens
Get-OpenAIEdit
works both with pipeline input as well as-InputText
param
- Added
New-Spreadsheet
- Creates a new Excel spreadsheet from a prompt - Moved [CmdletBinding()] above param. Synopsis was not displaying.
- Changed the default model for
Get-OpenAIEdit
tocode-davinci-edit-001
- Thank you Skatterbrainz
- Added Git-Examples.ipynb
- Updated
Get-OpenAIEdit.ps1
to return alltext
- Thank you Skatterbrainz
- Thank you Kris Borowinski
- Wired in A-Z ability to provide
OpenAIKey
via secure string
- Wired in A-Z ability to provide
- Added
Get-OpenAIEdit
. Given a prompt and an instruction, the model will return an edited version of the prompt. Thank you Skatterbrainz
- Added
-Method POST
toGet-OpenAIModeration
. Thank you Skatterbrainz
- Change
-temperature
default to 0
- Thank you to Pieter Jan Geutjens
- Added
-temperature
param toai
andcopilot
- Changed the input type from
int
todecimal
- Changed the range on temperature from [0,1] to [0,2] according to the API documentation
- Added
- Refactored to use
Invoke-OpenAIAPI
function. This function is used by all the other functions in the module. This allows for a single place to update the API URL and the API Key. - Add
Get-*
functions for OpenAI URIs - Took the function suggestions from Skatterbrainz and updated with
Invoke-OpenAIAPI
the refactor: https://github.com/dfinke/PowerShellAI/pull/30 - Refactored
Get-DalleImage
to useInvoke-OpenAIAPI
- Refactored
Get-GPT3Completion
to useInvoke-OpenAIAPI
- Check if
$result.choices
is not null before trying to access it. Thank you StartAutomating - Examples added to comment based help in
copilot
. Thank you Wes Stahler - Add
New-Spreadsheet
script. Creates a new spreadsheet from a prompt. Check out the code - Added
ConvertFrom-GPTMarkdownTable
function. Converts a markdown table to a PowerShell object. Check out the code - Unit tests started
- GitHub Actions in place to run CI/CD
- Added
Get-DalleImage
: Given a description, the model will return an image - Added
Set-DalleImageAsWallpaper
: Given a description, the model will return an image form DALL-E and set it as the wallpaper
- Added -max_tokens parameter to the
ai
function
-
Added
copilot
- Makes the request to GPT, parses the response and displays it in a box and then prompts the user to run the code or not. Check the README.md for me details. -
Added
ai
function:-
Experimental function enables piping
ai "list of planets only names as json"
[ "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune" ]
ai "list of planets only names as json" | ai 'convert to xml'
<?xml version="1.0" encoding="UTF-8"?> <Planets> <Planet>Mercury</Planet> <Planet>Venus</Planet> <Planet>Earth</Planet> <Planet>Mars</Planet> <Planet>Jupiter</Planet> <Planet>Saturn</Planet> <Planet>Uranus</Planet> <Planet>Neptune</Planet> </Planets>
-
- Thank you Martyn Keigher for your contributions!
-
Added
gpt
as an alias:# Get-GPT3Completion "list of planets only names as json" gpt "list of planets only names as json" ``
-
Added validation for:
temperature
,max_tokens
,top_p
,frequency_penalty
,presence_penalty
-