litellm-rs 0.4.16

A high-performance AI Gateway written in Rust, providing OpenAI-compatible APIs with intelligent routing, load balancing, and enterprise features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Event subscription functionality for the pricing service

use super::service::PricingService;
use super::types::PricingUpdateEvent;
use tokio::sync::broadcast;

impl PricingService {
    /// Subscribe to pricing update events
    pub fn subscribe_to_updates(&self) -> broadcast::Receiver<PricingUpdateEvent> {
        self.event_sender.subscribe()
    }
}