alith_models/api_model/
mod.rs

1use super::LLMModelBase;
2
3pub mod anthropic;
4pub mod openai;
5pub mod perplexity;
6
7#[derive(Clone)]
8pub struct ApiLLMModel {
9    pub model_base: LLMModelBase,
10    pub cost_per_m_in_tokens: f32,
11    pub cost_per_m_out_tokens: f32,
12    pub tokens_per_message: u32,
13    pub tokens_per_name: Option<i32>,
14}
15
16impl Default for ApiLLMModel {
17    fn default() -> Self {
18        Self::gpt_4()
19    }
20}