mirror of
https://github.com/openai/codex.git
synced 2026-04-28 18:32:04 +03:00
Pass platform param to featured plugins (#15348)
This commit is contained in:
@@ -2978,6 +2978,14 @@ pub enum Product {
|
||||
Atlas,
|
||||
}
|
||||
impl Product {
|
||||
pub fn to_app_platform(self) -> &'static str {
|
||||
match self {
|
||||
Self::Chatgpt => "chat",
|
||||
Self::Codex => "codex",
|
||||
Self::Atlas => "atlas",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_session_source_name(value: &str) -> Option<Self> {
|
||||
let normalized = value.trim().to_ascii_lowercase();
|
||||
match normalized.as_str() {
|
||||
|
||||
Reference in New Issue
Block a user