Repository navigation
v0.1.0
v0.1.0 - First release on PyPI
The Python port of Prism, a unified API layer over LLM providers. The distribution is prism-ai-core; the package imports as prism.
pip install prism-ai-core
What it has
- Every capability the PHP reference has:
text,structured,stream,embeddings,images,moderation,audio(text_to_speechandspeech_to_text),files,batchandfim. - Three providers:
anthropic,mistralandopenai. - No runtime dependencies. Python 3.10 or later.
- Every failure carries a stable
code(prism.ErrorCode). Match on the code, not the message. - Every value object has
to_dict()andfrom_dict().
Not in this release
- The tool-execution loop. A response that finishes on tool calls raises
tool_loop_not_supportedinstead of running them. - Fifteen of the reference's eighteen providers.
images,moderation,text_to_speech,filesandbatchwork with OpenAI only.fimworks with Mistral only, as in the reference.
Do not install prism-ai
prism-ai on PyPI is an unrelated package by another author, and it also has a version 0.1.0. Install prism-ai-core.
prism-parity's conformance corpus pins this port's behaviour against the PHP reference and the TypeScript port.