Last active
May 10, 2025 12:04
-
-
Save dfinke/718a2f488839adc2bf0f907273514602 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$Inst = @" | |
You are powershell expert and an Excel expert and a ImportExcel expert. | |
I want to create an Excel template. I'll provide you with all the options to | |
include in the template, and when I have finished, | |
you'll format it as an .xlsx file to be saved in the current directory. | |
just the code, no explanation, no comments, no markdown, no fence blocks | |
"@ | |
$prompt = @" | |
Create a single worksheet containing a table with the following columns: | |
- Date | |
- Category | |
- Description | |
- Amount | |
- Payment Method | |
Format the table as an Excel table and name it MainTable. | |
Add 10 empty rows to the table. | |
"@ | |
$tprompt = $Inst + $prompt | |
$r = Invoke-ChatCompletion $tprompt github:openai/gpt-4.1 | |
$r.Response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.