Installation
shell
Usage
OpenAI
openai.py
- Chat completions
- Image Create and Image Variations
- Audio Speech Create
- Embeddings
- Fine Tunings
- Completions
Cohere
cohere.py
Anthropic
anthropic.py
Parameters
| Parameter | Description | Required |
|---|---|---|
| llm | Language Learning Model (LLM) Object to track | Yes |
| doku_url | URL of your Doku Instance | Yes |
| api_key | Your Doku API key | Yes |
| environment | Custom environment tag to include in your metrics | Optional |
| application_name | Custom application name tag for your metrics | Optional |
| skip_resp | Skip response from the Doku Ingester for faster execution | Optional |
Advanced Usage
When using DokuMetry in Production environments, It is recommened to setskip_resp = true for faster porcessing.
To filter your LLM Usage according application or the environment, set the application and environment paramaters with the actual values.

