ai_chain_openai_compatible/chatgpt/model.rs
1use ai_chain::options::{ModelRef, Opt};
2use serde::{Deserialize, Serialize};
3use strum_macros::EnumString;
4
5/// The `Model` enum represents the available ChatGPT models that you can use through the OpenAI
6/// API.
7///
8/// These models have different capabilities and performance characteristics, allowing you to choose
9/// the one that best suits your needs. See <https://platform.openai.com/docs/models> for more
10/// information.
11///
12/// # Example
13///
14/// ```
15/// ```
16///
17///
18///
19pub trait ModelTrait {
20 /// 获取模型的名称
21 fn name(&self) -> String;
22
23 /// 获取模型的描述
24 fn description(&self) -> String;
25}
26