Pick a model
Note: Run on your machine. Try it Yourself does not call the models CLI.
List what you can use
The models command shows IDs grouped by provider. Filter when the list is long.
Example
praisonai models list
praisonai models list --provider openai
praisonai models list gptDescribe and validate
Describe one ID before you put it on an Agent. Validate catches typos early.
Example
praisonai models describe gpt-4o-mini
praisonai models validate gpt-4o-miniExample explained
- describe — Shows capabilities, limits, and cost notes when available.
- validate — Exits with an error if the ID is unknown.
Set it on an Agent
Pass the model ID as llm when you create the Agent in Python.
Try it Yourself below uses gpt-4o-mini explicitly. Swap the ID only after praisonai models validate succeeds on your machine.
Example
from praisonai import Agent
agent = Agent(
name="Helper",
instructions="Answer in one short paragraph.",
llm="gpt-4o-mini",
)
print(agent.start("Why pick a small model for dev work?"))In the web console
Chat uses the model from each agent's config (YAML or Python), not a separate picker on every message.
After you change model in agents.yaml, reload or restart the console so the new ID is picked up.
Example
agents:
- name: Helper
instructions: Answer in one short paragraph.
model: gpt-4o-miniReference: documentation