openai
Installation
SKILL.md
openai - OpenAI API Integration
The openai module provides a comprehensive CLI interface for OpenAI services, enabling users to perform complex AI tasks like text generation, translation, image creation, and audio conversion directly from the terminal.
When to Activate
- When the user wants to use OpenAI for chat or text generation (e.g., generating commit messages).
- When the user needs to translate file contents using AI.
- When the user wants to generate images based on text prompts.
- When the user needs to convert text to speech or transcribe audio.
- When managing OpenAI API keys or model configurations.
Core Principles & Rules
- API Key Management: Use
initor--cfg apikey=<key>to set up the environment. - File Input: Use the
--fileflag to provide context from local files to the chat/generation subcommands. - Reproducibility: Be aware that AI outputs can vary; use appropriate parameters for consistent results if needed.