gpt_batch_scribe/
gpt_api_url.rs

1crate::ix!();
2
3/// Enumeration of API URLs.
4#[derive(Debug, Serialize, Deserialize)]
5pub enum GptApiUrl {
6
7    #[serde(rename = "/v1/chat/completions")]
8    ChatCompletions,
9}
10
11impl fmt::Display for GptApiUrl {
12
13    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14        match self {
15            GptApiUrl::ChatCompletions => write!(f, "/v1/chat/completions"),
16        }
17    }
18}