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§
fn model(&mut self) -> &mut ApiLLMModel
Provided Methods§
Sourcefn model_id_str(self, model_id: &str) -> Selfwhere
Self: Sized,
fn model_id_str(self, model_id: &str) -> Selfwhere
Self: Sized,
Set the model using the model_id string.
fn sonar_small(self) -> Selfwhere
Self: Sized,
fn sonar_large(self) -> Selfwhere
Self: Sized,
fn sonar_huge(self) -> Selfwhere
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.