Skip to main content

openai_types/responses/
common.rs

1// MANUAL — hand-maintained. py2rust sync will not overwrite.
2// Shared enums used across Responses API types.
3// Re-exports canonical types from crate::shared where they exist.
4
5use serde::{Deserialize, Serialize};
6
7// Re-export canonical types from shared — single source of truth.
8pub use crate::shared::{ReasoningEffort, ReasoningSummary, Role, ServiceTier};
9
10/// Image detail level for vision inputs.
11#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
12#[cfg_attr(feature = "structured", derive(schemars::JsonSchema))]
13#[serde(rename_all = "snake_case")]
14#[non_exhaustive]
15pub enum ImageDetail {
16    /// Let the model decide.
17    Auto,
18    /// Low resolution — faster, fewer tokens.
19    Low,
20    /// High resolution — more detail, more tokens.
21    High,
22}