You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joshua Almeida edited this page Oct 12, 2026
·
1 revision
Usage
Python API (src/amalia2/client.py)
AmaliaConfig(base_url="https://api.amaliallm.pt/v1", api_key=None, timeout=60.0). When api_key is set it is sent as Authorization: Bearer ....
AmaliaClient(config=None) provides async chat(messages, model="amalia-9b", stream=False, **kwargs) → parsed JSON, plus close(). It also works as an async context manager.
Pass the key through the config object, for example from an environment variable you choose. Do not hard-code it.