Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calinux-py/ai-powershell
AI-PowerShell (Ask-AI) injects artificial intelligence directly into PowerShell
https://github.com/calinux-py/ai-powershell
ai ai-powered ai-powered-powershell ai-powered-shell ai-powershell ai-shell artificial-intelligence artificial-intelligence-powershell ask-ai chatgpt chatgpt-api chatgpt-app chatgpt-bot chatgpt-powershell powershell powershell-ai powershell-api powershell-artifical-intelligence powershell-chatgpt shell-ai
Last synced: about 1 month ago
JSON representation
AI-PowerShell (Ask-AI) injects artificial intelligence directly into PowerShell
- Host: GitHub
- URL: https://github.com/calinux-py/ai-powershell
- Owner: calinux-py
- Created: 2024-08-24T21:11:38.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T21:36:20.000Z (5 months ago)
- Last Synced: 2024-11-03T08:42:13.419Z (3 months ago)
- Topics: ai, ai-powered, ai-powered-powershell, ai-powered-shell, ai-powershell, ai-shell, artificial-intelligence, artificial-intelligence-powershell, ask-ai, chatgpt, chatgpt-api, chatgpt-app, chatgpt-bot, chatgpt-powershell, powershell, powershell-ai, powershell-api, powershell-artifical-intelligence, powershell-chatgpt, shell-ai
- Language: PowerShell
- Homepage:
- Size: 22.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# AI-PowerShell (Ask-AI v.2)
![PowerShell](https://img.shields.io/badge/PowerShell-5.1%2B-blue)
![Description](https://github.com/calinux-py/AI-Powershell/blob/main/2024-08-24%2014-28-38_3.gif?raw=true)AI-PowerShell (Ask-AI v.2) is a PowerShell function designed to simplify troubleshooting within PowerShell. With this tool, you can easily request assistance for resolving errors, rectifying syntax issues, or locating the right commands using the power of OpenAI's GPT-3 engine.
## Prerequisites
Before you get started, make sure you have the following prerequisites:
- PowerShell 5.1 or higher
- An OpenAI API key## Installation
1. Clone or download this repository to your local machine.
2. Open the `AskAI.ps1` file.
3. Replace `'OPENAI API HERE'` with your actual OpenAI API key.
4. Save the changes.## Usage
AI-PowerShell offers several options to customize your interaction:
- `/s`: Display the full message sent to OpenAI's API.
- `/d`: Request detailed assistance (expands tokens and word count from OpenAI).
- `/a`: Display the full message and request detailed assistance.
- `/i`: Send a custom message to OpenAI's API.
- `/help` or `/?`: Display the help message.### Examples
To request assistance with the last error message:
```powershell
Ask-AI
```To display the help message:
```powershell
Ask-AI /?
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.