pub struct ModelComparison {
pub models: Vec<ModelObject>,
pub capabilities: Vec<ModelCapabilities>,
pub pricing: Vec<ModelPricing>,
pub performance: Vec<ModelPerformance>,
pub summary: ComparisonSummary,
}
Expand description
Model comparison result
Fields§
§models: Vec<ModelObject>
Models being compared
capabilities: Vec<ModelCapabilities>
Capabilities comparison
pricing: Vec<ModelPricing>
Pricing comparison
performance: Vec<ModelPerformance>
Performance characteristics
summary: ComparisonSummary
Comparison summary and recommendations
Implementations§
Source§impl ModelComparison
impl ModelComparison
Sourcepub fn best_for_speed(&self) -> Option<&ModelObject>
pub fn best_for_speed(&self) -> Option<&ModelObject>
Get the best model for a specific criterion
Sourcepub fn best_for_quality(&self) -> Option<&ModelObject>
pub fn best_for_quality(&self) -> Option<&ModelObject>
Get the best model for quality
Sourcepub fn most_cost_effective(&self) -> Option<&ModelObject>
pub fn most_cost_effective(&self) -> Option<&ModelObject>
Get the most cost-effective model
Trait Implementations§
Source§impl Clone for ModelComparison
impl Clone for ModelComparison
Source§fn clone(&self) -> ModelComparison
fn clone(&self) -> ModelComparison
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 ModelComparison
impl Debug for ModelComparison
Source§impl<'de> Deserialize<'de> for ModelComparison
impl<'de> Deserialize<'de> for ModelComparison
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
Auto Trait Implementations§
impl Freeze for ModelComparison
impl RefUnwindSafe for ModelComparison
impl Send for ModelComparison
impl Sync for ModelComparison
impl Unpin for ModelComparison
impl UnwindSafe for ModelComparison
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