Completions CLI
CLI commands for chat and text completions
Overview
Access chat completions directly from the command line.
Commands
Basic Completion
praisonai completions "What is 2 + 2?"With Model Selection
praisonai completions "Explain quantum computing" --model gpt-4oWith System Prompt
praisonai completions "Write a haiku" --system "You are a poet"With Temperature
praisonai completions "Generate a creative story" --temperature 0.9With Max Tokens
praisonai completions "Summarize AI" --max-tokens 50Options
| Option | Short | Default | Description |
|---|---|---|---|
--model | -m | gpt-4o-mini | Model to use |
--system | -s | None | System prompt |
--temperature | -t | 1.0 | Sampling temperature |
--max-tokens | None | Maximum tokens |
Examples
# Simple question
praisonai completions "What is the capital of France?"
# Code generation
praisonai completions "Write a Python function to sort a list" -m gpt-4o
# Creative writing with high temperature
praisonai completions "Write a poem about the ocean" -t 0.9 -s "You are a creative poet"