Skip to main content

Context0 SDK — one import, all calls logged

Project description

llm-observatory

Drop-in LLM observability for Python. One import change, all calls logged automatically.

Install

pip install llm-observatory

Usage

from llm_observatory import configure, OpenAI

configure(api_key="your-api-key", base_url="https://your-endpoint.com")

client = OpenAI(api_key="sk-...")
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello"}],
)

Supports OpenAI, AsyncOpenAI, AzureOpenAI, AsyncAzureOpenAI, Anthropic, and AsyncAnthropic.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_observatory-0.1.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_observatory-0.1.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_observatory-0.1.1.tar.gz.

File metadata

  • Download URL: llm_observatory-0.1.1.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for llm_observatory-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4e4fe04082d13620da88b88c6626dc4303f36d4cd75fb37f99dc7c048d9ae71a
MD5 6d4a5ca23c0be567fdcc121bbb9ae4f8
BLAKE2b-256 1a7c9d447f063a21cc422636a52921f28f511a09584c0a318fd6e07e1a81c08b

See more details on using hashes here.

File details

Details for the file llm_observatory-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_observatory-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0ccf7b77d9c2f25b41a953f7a529e64528da52e39c829db6dede993eeb9ce0
MD5 00241758d73479970eec7bf70a082c9e
BLAKE2b-256 942422f947fa6ad63d49392621a468fb72631c579f83698c5f3905302fdb0596

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page