openai_interface/chat/mod.rs
1//! Response to a given `chat` conversation.
2
3use serde::{Deserialize, Serialize};
4
5pub mod create;
6
7/// The service tier used for processing the request.
8///
9/// This enum represents the different service tiers that can be specified when
10/// making a request to the API. Each tier corresponds to different performance
11/// characteristics and pricing models.
12#[derive(Debug, Serialize, Deserialize, Clone)]
13#[serde(rename_all = "lowercase")]
14pub enum ServiceTier {
15 /// Automatically select the service tier based on project settings.
16 Auto,
17 /// Use the default service tier with standard pricing and performance.
18 Default,
19 /// Use the flex service tier for flexible processing requirements.
20 Flex,
21 /// Use the scale service tier for scalable processing needs.
22 Scale,
23 /// Use the priority service tier for high-priority requests.
24 Priority,
25}