Skip to main content

CLI tool for multimodal AI model calls, tool use, and more.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smallish_ai-0.1.0.tar.gz (15.9 kB view details)

Uploaded Source

File details

Details for the file smallish_ai-0.1.0.tar.gz.

File metadata

  • Download URL: smallish_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for smallish_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ac63c753c347e68393c9931158c4afbd23bfd52dd228f6e27dc009d104685fd
MD5 68ac9db0b15dc3f48492be093cba63cb
BLAKE2b-256 cc13acbf750b1e45dd4e6f9a959842cb2062e2f76c454ee5807900c025c8d605

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page