14 unstable releases (3 breaking)

new 0.4.3 Jul 9, 2024
0.4.2 Jul 1, 2024
0.4.0 Jun 29, 2024
0.3.2 Jun 24, 2024
0.1.1 Apr 30, 2024

#925 in Database interfaces

Download history 118/week @ 2024-04-24 326/week @ 2024-05-01 133/week @ 2024-05-08 7/week @ 2024-05-15 8/week @ 2024-05-22 397/week @ 2024-05-29 33/week @ 2024-06-05 7/week @ 2024-06-12 284/week @ 2024-06-19 537/week @ 2024-06-26

867 downloads per month
Used in 2 crates

Apache-2.0

345KB
8K SLoC

chronicle

Chronicle is a proxy for language model API calls which

  • Provides retries and optionally falls back to other providers on a failed call
  • Records each call in a database, and sends OpenTelemetry events
  • Lets you switch model provider APIs without changing your request format.
  • Supports both SQLite and PostgreSQL databases
  • Comes with a drop-in fetch function that will redirect OpenAI SDK calls to Chronicle instead.
  • Supports logging "runs" and "steps" for multi-step workflows

See the roadmap for the current status and other notes.


lib.rs:

Chronicle LLM Proxy and Observability tool. This is the implementation of the proxy which can be embedded into a Rust application. For other uses you may want to try the full-fledged API application in the chronicle-api crate.

Dependencies

~40–59MB
~1M SLoC