Pass platform param to featured plugins (#15348)

This commit is contained in:
alexsong-oai
2026-03-20 18:42:40 -07:00
committed by GitHub
parent 60c59a7799
commit ec32866c37
5 changed files with 90 additions and 1 deletions

View File

@@ -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() {