Skip to main content

RawLiteLLMEntry

Struct RawLiteLLMEntry 

Source
pub struct RawLiteLLMEntry {
Show 23 fields pub litellm_provider: Option<String>, pub mode: Option<String>, pub max_input_tokens: Option<u32>, pub max_output_tokens: Option<u32>, pub max_tokens: Option<u32>, pub input_cost_per_token: Option<f64>, pub output_cost_per_token: Option<f64>, pub cache_read_input_token_cost: Option<f64>, pub cache_creation_input_token_cost: Option<f64>, pub output_cost_per_reasoning_token: Option<f64>, pub input_cost_per_audio_token: Option<f64>, pub deprecation_date: Option<String>, pub supports_function_calling: Option<bool>, pub supports_vision: Option<bool>, pub supports_audio_input: Option<bool>, pub supports_audio_output: Option<bool>, pub supports_video_input: Option<bool>, pub supports_web_search: Option<bool>, pub supports_pdf_input: Option<bool>, pub supports_reasoning: Option<bool>, pub supports_computer_use: Option<bool>, pub supports_prompt_caching: Option<bool>, pub supports_assistant_prefill: Option<bool>,
}
Expand description

Raw LiteLLM entry as it appears in the JSON.

Fields§

§litellm_provider: Option<String>

Provider slug as LiteLLM reports it.

§mode: Option<String>

What the model does: chat, embedding, image_generation, and so on.

§max_input_tokens: Option<u32>

Largest prompt the model accepts, in tokens.

§max_output_tokens: Option<u32>

Largest completion the model will produce, in tokens.

§max_tokens: Option<u32>

Combined limit, used when the input/output split is unknown.

§input_cost_per_token: Option<f64>

USD charged per input token.

§output_cost_per_token: Option<f64>

USD charged per output token.

§cache_read_input_token_cost: Option<f64>

USD per input token served from the prompt cache.

§cache_creation_input_token_cost: Option<f64>

USD per input token written to the prompt cache.

§output_cost_per_reasoning_token: Option<f64>

USD per reasoning token, where billed separately.

§input_cost_per_audio_token: Option<f64>

USD per audio input token.

§deprecation_date: Option<String>

Date the provider retires the model, as YYYY-MM-DD.

§supports_function_calling: Option<bool>

Whether the model can call tools.

§supports_vision: Option<bool>

Whether the model accepts images.

§supports_audio_input: Option<bool>

Whether the model accepts audio.

§supports_audio_output: Option<bool>

Whether the model can emit audio.

§supports_video_input: Option<bool>

Whether the model accepts video.

§supports_web_search: Option<bool>

Whether the provider offers built-in web search.

§supports_pdf_input: Option<bool>

Whether the model accepts PDFs directly.

§supports_reasoning: Option<bool>

Whether the model exposes reasoning or thinking output.

§supports_computer_use: Option<bool>

Whether the model supports computer-use tooling.

§supports_prompt_caching: Option<bool>

Whether the provider caches prompt prefixes.

§supports_assistant_prefill: Option<bool>

Whether an assistant turn may be prefilled.

Trait Implementations§

Source§

impl Debug for RawLiteLLMEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RawLiteLLMEntry

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.