ModelTrait

Trait ModelTrait 

Source
pub trait ModelTrait {
    // Required methods
    fn name(&self) -> String;
    fn description(&self) -> String;
}
Expand description

The Model enum represents the available ChatGPT models that you can use through the OpenAI API.

These models have different capabilities and performance characteristics, allowing you to choose the one that best suits your needs. See https://platform.openai.com/docs/models for more information.

§Example

Required Methods§

Source

fn name(&self) -> String

获取模型的名称

Source

fn description(&self) -> String

获取模型的描述

Implementors§