DIN 0815 · STANDARD SOFTWARE REV 2026.04 ● LIVE

One API for AI features, provider-agnostic. The default provider is a deterministic built-in mock that makes zero external calls, so chat, embeddings and RAG are reproducible offline and in CI. Real adapters for Anthropic, OpenAI, Google Gemini, Kimi (Moonshot AI) and Ollama (the open-source, local option) activate only when configured and requested by name; an unconfigured vendor falls back to the mock. Prompts are versioned with an active-version pointer, embeddings are cached, and RAG offers cosine search over ingested documents.

STATUS Available
DEFAULT PORT 4004
LICENSE MIT · always free
REPOSITORY VIEW SOURCE ↗

Responsibilities

  • Chat completions with an append-only call log and idempotency
  • Deterministic mock provider by default; falls back to it when a vendor is unconfigured
  • Real adapters for Anthropic, OpenAI, Gemini, Kimi and Ollama (open-source, local)
  • Embeddings from a local model, cached by (model, input hash); RAG cosine search
  • Versioned prompt templates with an active-version pointer

API surface

  • POST /api/chat/completions · POST /api/embeddings
  • GET/POST /api/prompts · PUT /api/prompts/:key/active
  • POST /api/prompts/:key/render
  • POST /api/rag/documents · POST /api/rag/search
  • GET /api/completions

CONSUMED BY Any module that needs chat, embeddings, retrieval or prompts. A Platform Service never depends on a Business Module.