Enum llm_chain_openai::chatgpt::Model
source · pub enum Model {
ChatGPT3_5Turbo,
Other(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.
Currently, the available models are:
ChatGPT3_5Turbo
: A high-performance and versatile model that offers a great balance of speed, quality, and affordability.Other(String)
: A variant that allows you to specify a custom model name as a string, in case new models are introduced or you have access to specialized models.
Example
use llm_chain_openai::chatgpt::Model;
let turbo_model = Model::ChatGPT3_5Turbo;
let custom_model = Model::Other("your_custom_model_name".to_string());
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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