Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Sep 18:33
· 39 commits to main since this release

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_speech and speech_to_text), files, batch and fim.
  • Three providers: anthropic, mistral and openai.
  • 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() and from_dict().

Not in this release

  • The tool-execution loop. A response that finishes on tool calls raises tool_loop_not_supported instead of running them.
  • Fifteen of the reference's eighteen providers.
  • images, moderation, text_to_speech, files and batch work with OpenAI only. fim works 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.