To use Google with psaisuite you will need to obtain a Google Gemini API key. Visit Google AI Studio to create an API key if you don't already have one.
You'll need to set the following environment variable:
$env:GeminiKey = "your-gemini-api-key"Install psaisuite from the PowerShell Gallery.
Install-Module PSAISuiteIn your code:
# Import the module
Invoke-ChatCompletion 'capital of france' gemini:gemini-1.5-proMessages : {"role":"user","content":"What is the capital of France?"}
Response : Paris
Model : gemini:gemini-1.5-pro
Provider : gemini
ModelName : gemini-1.5-pro
Timestamp : Sun 03 09 2025 9:43:30 AM