Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 798 Bytes

File metadata and controls

35 lines (24 loc) · 798 Bytes

Google

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"

Create a Chat Completion

Install psaisuite from the PowerShell Gallery.

Install-Module PSAISuite

In your code:

# Import the module

Invoke-ChatCompletion 'capital of france' gemini:gemini-1.5-pro
Messages  : {"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