0.5.0 (2026-12-03)

Added

  • provider: :azure_foundry for Microsoft-Decision-1.1 in Microsoft Foundry. The endpoint is url: or AZURE_FOUNDRY_ENDPOINT plus /providers/microsoft/v1/systemone, and model: (your deployment name) is required, otherwise {:error, :missing_model}. api_key: or AZURE_FOUNDRY_API_KEY is sent in the api-key header; bearer_token: or AZURE_FOUNDRY_BEARER_TOKEN is sent as Authorization: Bearer (for Microsoft Entra ID). images: is not supported with this provider yet.
  • organization: and project: options for provider: :openai, falling back to OPENAI_ORG_ID and OPENAI_PROJECT_ID. They are sent as the OpenAI-Organization and OpenAI-Project headers; unset or empty values send nothing, and neither value appears in telemetry or error terms.

Changed

0.4.0 (2026-11-14)

Added

  • provider: :gemini for Google's Gemini Decisions API (POST /v1beta/decisions, default model gemini-decision-1, GEMINI_API_KEY sent as x-goog-api-key). Requests are reshaped by SystemOneClient.Wire.GeminiDecisions; answers already match the System One shape, so questions and answer structs are the same as for every other provider.
  • images: works with provider: :gemini: PNG, JPEG, WebP, HEIC, HEIF, GIF, BMP and TIFF data URLs, up to 100 MiB in total, sent as image blocks before the state.
  • provider: :flide for self-hosted Flide servers: URL from url: or FLIDE_URL (default http://localhost:8000/v1/systemone), optional key from api_key: or FLIDE_API_KEY, no default model, and images: passed as the top-level images array.

Changed

  • SystemOneClient.Provider results can carry auth: {:header, name, value} as well as {:bearer, key}, and wire: :gemini_decisions.

0.3.0 (2026-10-13)

Added

  • images: option for image inputs with provider: :openai and provider: :cloudflare. Images are base64 data URLs; SystemOneClient.image_data_url/2 builds one from bytes. OpenAI receives them as input_image parts before the state text; Clef receives its top-level images array. Both see the images before the state.
  • SystemOneClient.Images validates images before any request: data URLs only (no remote URLs), plus Clef's limits of 4 PNG, JPEG or WebP images, 4 MiB each and 8 MiB in total. Other providers return {:error, {:unsupported_option, :images, provider}}.
  • Telemetry metadata includes image_count.

0.2.0 (2026-10-12)

Added

Changed

  • SystemOneClient.Provider results carry a wire field (:system_one or :openai_decisions).
  • The Hex package links to this changelog.

0.1.0 (2026-10-08)

  • SystemOneClient behaviour with evaluate/3, validate_questions/1, and a dispatcher that picks the implementation from opts[:client] or app env.
  • SystemOneClient.HTTP: Req-based client with retries on 429/529/502/503/504 and transport errors, Retry-After and retry-after-ms support, 2 s default receive timeout.
  • SystemOneClient.Provider: :typesafe, :cloudflare (Clef and Clef-flash, result envelope), :openrouter, :compatible (any /v1/systemone URL, e.g. CLM).
  • SystemOneClient.Answer.{Choice, Noul, Score} with full probability distributions and validation of non-numeric probabilities and non-map answer payloads.
  • SystemOneClient.Stub for offline tests.
  • Telemetry [:system_one_client, :request, *] without state, questions, or keys.