pub enum ChatModel {
Show 14 variants
Llama70BGroq,
Llama8BGroq,
Llama3BGroq,
Llama1BGroq,
Gemma9BGroq,
CommandRPlus,
CommandR,
Haiku,
Sonnet,
Opus,
Gpt4O,
Gpt4OMini,
Phi14BOllama,
Dummy,
}
Variants§
Llama70BGroq
Llama8BGroq
Llama3BGroq
Llama1BGroq
Gemma9BGroq
CommandRPlus
CommandR
Haiku
Sonnet
Opus
Gpt4O
Gpt4OMini
Phi14BOllama
Dummy
for test
- doesn’t require api key
- always returns ‘dummy’ to a request
- needs no network
Implementations§
source§impl ModelKind
impl ModelKind
pub fn all_kinds() -> &'static [ModelKind]
pub fn to_api_friendly_name(&self) -> &'static str
pub fn to_human_friendly_name(&self) -> &'static str
pub fn explanation(&self) -> &'static str
pub fn context_size(&self) -> usize
pub fn can_read_images(&self) -> bool
pub fn output_token_length(&self) -> usize
pub fn api_timeout(&self) -> u64
pub fn dollars_per_1b_input_tokens(&self) -> u64
pub fn dollars_per_1b_output_tokens(&self) -> u64
pub fn get_api_provider(&self) -> ApiProvider
Trait Implementations§
impl Copy for ModelKind
impl Eq for ModelKind
impl StructuralPartialEq for ModelKind
Auto Trait Implementations§
impl Freeze for ModelKind
impl RefUnwindSafe for ModelKind
impl Send for ModelKind
impl Sync for ModelKind
impl Unpin for ModelKind
impl UnwindSafe for ModelKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.