pub enum CodexModel {
Gpt56Sol,
Gpt56Terra,
Gpt56Luna,
Gpt55,
Gpt54,
Gpt54Mini,
Gpt52,
CodexAutoReview,
Custom(String),
}Expand description
A model slug accepted by the Codex CLI and app-server.
Variants§
Gpt56Sol
GPT-5.6-Sol (gpt-5.6-sol).
Gpt56Terra
GPT-5.6-Terra (gpt-5.6-terra).
Gpt56Luna
GPT-5.6-Luna (gpt-5.6-luna).
Gpt55
GPT-5.5 (gpt-5.5).
Gpt54
GPT-5.4 (gpt-5.4).
Gpt54Mini
GPT-5.4-Mini (gpt-5.4-mini).
Gpt52
GPT-5.2 (gpt-5.2).
CodexAutoReview
Codex Auto Review (codex-auto-review) — hidden from the picker but
accepted by the API.
Custom(String)
A model slug not yet known to this version of the crate. Passed through verbatim.
Implementations§
Source§impl CodexModel
impl CodexModel
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Human-friendly display name, matching the catalog’s display_name.
Sourcepub fn known() -> &'static [CodexModel]
pub fn known() -> &'static [CodexModel]
Every model known to this version of the crate.
Trait Implementations§
Source§impl Clone for CodexModel
impl Clone for CodexModel
Source§fn clone(&self) -> CodexModel
fn clone(&self) -> CodexModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodexModel
impl Debug for CodexModel
Source§impl<'de> Deserialize<'de> for CodexModel
impl<'de> Deserialize<'de> for CodexModel
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CodexModel
impl Display for CodexModel
impl Eq for CodexModel
Source§impl From<&str> for CodexModel
impl From<&str> for CodexModel
Source§impl From<CodexModel> for String
impl From<CodexModel> for String
Source§fn from(model: CodexModel) -> Self
fn from(model: CodexModel) -> Self
Converts to this type from the input type.
Source§impl Hash for CodexModel
impl Hash for CodexModel
Source§impl PartialEq for CodexModel
impl PartialEq for CodexModel
Source§impl Serialize for CodexModel
impl Serialize for CodexModel
impl StructuralPartialEq for CodexModel
Auto Trait Implementations§
impl Freeze for CodexModel
impl RefUnwindSafe for CodexModel
impl Send for CodexModel
impl Sync for CodexModel
impl Unpin for CodexModel
impl UnsafeUnpin for CodexModel
impl UnwindSafe for CodexModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more