PerplexityModelTrait

Trait PerplexityModelTrait 

Source
pub trait PerplexityModelTrait: Sized {
    // Required method
    fn model(&mut self) -> &mut ApiLLMModel;

    // Provided methods
    fn model_id_str(self, model_id: &str) -> Self
       where Self: Sized { ... }
    fn sonar_small(self) -> Self
       where Self: Sized { ... }
    fn sonar_large(self) -> Self
       where Self: Sized { ... }
    fn sonar_huge(self) -> Self
       where Self: Sized { ... }
}

Required Methods§

Source

fn model(&mut self) -> &mut ApiLLMModel

Provided Methods§

Source

fn model_id_str(self, model_id: &str) -> Self
where Self: Sized,

Set the model using the model_id string.

Source

fn sonar_small(self) -> Self
where Self: Sized,

Source

fn sonar_large(self) -> Self
where Self: Sized,

Source

fn sonar_huge(self) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§