SMAI - Small AI Command Line Tool
This is a work in progress, use at your own risk.
A command-line interface for interacting with various AI models for text generation, image creation, audio transcription, and speech synthesis.
Installation
pip install smallish-ai
Features
- Text generation with multiple models (OpenAI, Anthropic, etc.)
- Image generation
- Audio transcription
- Text-to-speech conversion
- Tool integration (calculator, weather, etc.)
- Interactive tool execution
- Streaming responses
- Conversation management
Usage
# Basic text generation
smai "Tell me a joke"
# Use a specific model
smai -m gpt-4 "Explain quantum computing"
# Pass model-specific parameters
smai -m gpt-4 --temperature 0.5 "Write a creative story"
# Generate an image
smai -m dall-e-3 -o image.png "A sunset over mountains"
# Use tools
smai -t calculator,weather "How much colder is Paris than SF right now?"
# Transcribe audio
smai -m whisper input.mp3
# Generate speech
smai -m tts -o output.mp3 "Text to convert to speech"
API Keys
# Set an API key
smai --set-key OPENAI_API_KEY
# Remove an API key
smai --remove-key OPENAI_API_KEY
License
MIT
Metadata
Release files for smallish-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smallish_ai-0.1.0.tar.gz | 15.9 kB | Details |
Release files / smallish_ai-0.1.0.tar.gz
| Download URL | smallish_ai-0.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ac63c753c347e68393c9931158c4afbd23bfd52dd228f6e27dc009d104685fd
|
|
BLAKE2b-256 checksum How to use checksums |
cc13acbf750b1e45dd4e6f9a959842cb2062e2f76c454ee5807900c025c8d605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|