Ask-GPT

1.0.8

Ask-GPT: Interactive OpenAI GPT integration for PowerShell`n`nEXAMPLES:`n  Ask-GPT "Explain PowerShell arrays"`n  "What is 2+2?" | Ask-GPT`n  Ask-GPT -Model gpt-4 "Fix this code"`n`nFEATURES:`n  • Streaming responses to console`n  • Conversation history management`n  • All GPT models (GPT-5, GPT-4, GPT-3.5-turbo)`n  • Pipeline support for PowerShell workflows`n  • Tem
Ask-GPT: Interactive OpenAI GPT integration for PowerShell`n`nEXAMPLES:`n  Ask-GPT "Explain PowerShell arrays"`n  "What is 2+2?" | Ask-GPT`n  Ask-GPT -Model gpt-4 "Fix this code"`n`nFEATURES:`n  • Streaming responses to console`n  • Conversation history management`n  • All GPT models (GPT-5, GPT-4, GPT-3.5-turbo)`n  • Pipeline support for PowerShell workflows`n  • Temperature control and ANSI formatting`n`nSETUP:`n  Set-Item env:OPENAI_API_KEY "your-api-key"`n`nPerfect for automation, scripting, code assistance, and interactive AI workflows.
Show more

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Ask-GPT

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Ask-GPT

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 stimpy77. All rights reserved.

Package Details

Author(s)

  • stimpy77

Tags

OpenAI GPT AI Chat API PowerShell Ask-GPT AskGPT ChatGPT CLI CommandLine

Functions

Ask-GPT

Dependencies

This module has no dependencies.

Release Notes

Version 1.0.8: Fix -pro model exclusion pattern
- Fix -pro exclusion to use wildcard pattern (*-pro*) for broader matching

Version 1.0.7: Exclude -pro suffix models from auto-selection
- Exclude models ending with -pro suffix from automatic model selection

Version 1.0.6: Exclude codex models from auto-selection
- Exclude codex models (e.g., gpt-5-codex) from automatic model selection
- Enhanced module description with examples and features for better discoverability
- Complete CHANGELOG documentation for versions 1.0.2 through 1.0.5

Version 1.0.5: Error handling fix and GPT-5 support
- Fixed GPT-5 compatibility: Handle temperature restrictions (GPT-5 only supports default temperature)
- Fixed GPT-5 streaming: Auto-fallback to non-streaming for unverified organizations
- Improved error handling with detailed API error messages

FileList

Version History

Version Downloads Last updated
1.0.8 (current version) 6 10/6/2025
1.0.7 5 10/6/2025
1.0.6 9 9/30/2025
1.0.5 17 9/2/2025
1.0.4 7 9/2/2025
1.0.3 19 7/5/2025
1.0.2 6 7/5/2025
1.0.1 7 7/5/2025
1.0.0 9 6/30/2025
Show more