Registry / ai-ml / chatlas

chatlas

JSON →
library0.18.1pypypi✓ verified 89d ago

Chatlas provides a simple and consistent interface for chatting with large language models (LLMs) from providers like OpenAI, Anthropic, Google Gemini, and others. Version 0.18.1 supports Python >=3.9 and follows a rapid release cadence. It abstracts away provider-specific details, offering a unified chat session API.

pip install chatlas
INSTALL
IMPORT
SIG · CHATLAS
C
chatlas
ai-mlpythonv0.18.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ChatOpenAI
✓ from chatlas import ChatOpenAI
ChatAnthropic
✓ from chatlas import ChatAnthropic
ChatGoogle
✓ from chatlas import ChatGoogle

Creates a chat session with OpenAI and sends a message.

import os from chatlas import ChatOpenAI chat = ChatOpenAI(model="gpt-4o-mini", api_key=os.environ.get("OPENAI_API_KEY", "")) resp = chat.chat("What is the capital of France?") print(resp)
Debug
Known issues
breakingVersion 0.18.1 changed the default model for ChatOpenAI to 'gpt-4o-mini'; previously it was 'gpt-4o'.
fix
Explicitly specify the model parameter instead of relying on defaults.
affects: >=0.18.0
gotchaThe library does not bundle dependencies for providers; you must install provider packages separately (e.g., openai, anthropic).
fix
Install the required provider package: pip install openai for ChatOpenAI.
affects: all
deprecatedThe method `chat_session` is deprecated since 0.16.0; use `chat` directly.
fix
Replace `chat.chat_session(...)` with `chat(...)`.
affects: >=0.16.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'openai'
Chatlas does not automatically install provider packages.
fix
Run: pip install openai
chatlas.exceptions.ValueError: 'model' must be provided
The model parameter is required but was omitted.
fix
Provide a valid model name, e.g., model="gpt-4o-mini".
AttributeError: 'ChatOpenAI' object has no attribute 'chat_session'
The `chat_session` method was removed in version 0.16.0.
fix
Use `chat.chat()` or directly call `chat("prompt")`.
Upgrade
Version history
0.18.1latest on PyPI · released May 21, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
chatlas — pip install chatlas · libregistry