| Crates.io | llm-observatory-providers |
| lib.rs | llm-observatory-providers |
| version | 0.1.1 |
| created_at | 2025-11-06 01:16:59.947733+00 |
| updated_at | 2025-11-06 01:16:59.947733+00 |
| description | LLM provider implementations and pricing models for LLM Observatory |
| homepage | |
| repository | https://github.com/globalbusinessadvisors/llm-observatory |
| max_upload_size | |
| id | 1918933 |
| size | 87,214 |
LLM provider implementations and pricing models for LLM Observatory.
Comprehensive LLM provider support with real-time cost tracking:
Add to your Cargo.toml:
[dependencies]
llm-observatory-providers = "0.1"
Example:
use llm_observatory_providers::{Provider, PricingEngine};
// Calculate cost for a request
let cost = PricingEngine::calculate_cost(
Provider::OpenAI,
"gpt-4o",
1000, // prompt tokens
500, // completion tokens
)?;
println!("Cost: ${:.6}", cost);
| Provider | Models | Features |
|---|---|---|
| OpenAI | GPT-4o, GPT-4, GPT-3.5, o1 | Cost tracking, streaming |
| Anthropic | Claude 3.5, Claude 3 | Cost tracking, streaming |
| Gemini 2.5, Gemini 1.5 | Cost tracking | |
| Mistral | Large, Small, OSS | Cost tracking |
See the provider documentation for detailed usage.
Apache-2.0