1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
crate::ix!();

/// Enumeration of API URLs.
#[derive(Debug, Serialize, Deserialize)]
pub enum GptApiUrl {

    #[serde(rename = "/v1/chat/completions")]
    ChatCompletions,
}

impl fmt::Display for GptApiUrl {

    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            GptApiUrl::ChatCompletions => write!(f, "/v1/chat/completions"),
        }
    }
}