Skip to main content

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-4o

With System Prompt

praisonai completions "Write a haiku" --system "You are a poet"

With Temperature

praisonai completions "Generate a creative story" --temperature 0.9

With Max Tokens

praisonai completions "Summarize AI" --max-tokens 50

Options

OptionShortDefaultDescription
--model-mgpt-4o-miniModel to use
--system-sNoneSystem prompt
--temperature-t1.0Sampling temperature
--max-tokensNoneMaximum 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"