pub struct LanguageModel {Show 14 fields
pub id: String,
pub fingerprint: String,
pub created: i64,
pub object: String,
pub owned_by: String,
pub version: String,
pub input_modalities: Vec<String>,
pub output_modalities: Vec<String>,
pub prompt_text_token_price: i64,
pub cached_prompt_text_token_price: i64,
pub prompt_image_token_price: i64,
pub completion_text_token_price: i64,
pub search_price: i64,
pub aliases: Vec<String>,
}Expand description
Details of a language model.
Fields§
§id: StringModel ID.
fingerprint: StringFingerprint of the xAI system configuration hosting the model.
created: i64Creation time of the model in Unix timestamp.
object: StringThe object type, which is always "model".
owned_by: StringOwner of the model.
version: StringVersion of the model.
input_modalities: Vec<String>The input modalities supported by the model, e.g. "text", "image".
output_modalities: Vec<String>The output modalities supported by the model, e.g. "text", "image".
prompt_text_token_price: i64Price of the prompt text token in USD cents per 100 million token.
cached_prompt_text_token_price: i64Price of a prompt text token that was cached previously.
prompt_image_token_price: i64Price of the prompt image token in USD cents per 100 million token.
completion_text_token_price: i64Price of the completion text token in USD cents per 100 million token.
search_price: i64Price of the search in USD cents per 100 million searches.
aliases: Vec<String>Alias ID(s) of the model that user can use in a request’s model field.
Trait Implementations§
Source§impl Clone for LanguageModel
impl Clone for LanguageModel
Source§fn clone(&self) -> LanguageModel
fn clone(&self) -> LanguageModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguageModel
impl Debug for LanguageModel
Source§impl Default for LanguageModel
impl Default for LanguageModel
Source§fn default() -> LanguageModel
fn default() -> LanguageModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LanguageModel
impl<'de> Deserialize<'de> for LanguageModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LanguageModel
impl PartialEq for LanguageModel
Source§impl Serialize for LanguageModel
impl Serialize for LanguageModel
impl StructuralPartialEq for LanguageModel
Auto Trait Implementations§
impl Freeze for LanguageModel
impl RefUnwindSafe for LanguageModel
impl Send for LanguageModel
impl Sync for LanguageModel
impl Unpin for LanguageModel
impl UnwindSafe for LanguageModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more