Models
Klisk is compatible with multiple language model providers thanks to the LiteLLM integration.
Default model
The recommended default model is gpt-5.2 from OpenAI.
python
agent = define_agent(
name="MyAgent",
model="gpt-5.2",
# ...
)Supported providers
| Provider | Model format | Example |
|---|---|---|
| OpenAI | gpt-* | gpt-5.2, gpt-4.1 |
| Anthropic | anthropic/model | anthropic/claude-sonnet-4-20250514 |
| Google Gemini | gemini/model | gemini/gemini-2.5-pro |
| Mistral | mistral/model | mistral/mistral-large-latest |
To use non-OpenAI providers, install the package with LiteLLM support:
bash
pip install 'klisk[litellm]'And set the corresponding API key in your .env:
sh
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=...
MISTRAL_API_KEY=...Temperature and reasoning effort
These parameters are passed directly to define_agent():
python
agent = define_agent(
name="MyAgent",
model="gpt-5.2",
temperature=0.7, # Creativity (0-1)
reasoning_effort="medium", # Only for o-series and gpt-5+
)WARNING
reasoning_effort is only supported by o-series models (o1, o3, o4-mini) and gpt-5+. Do not use it with gpt-4.1 or gpt-4o.
Check the other models guide for detailed configuration.
