Use public plugin service credential routes

This commit is contained in:
Winston Howes
2026-05-15 19:14:20 -07:00
parent afc19347e2
commit 01e357537f

View File

@@ -419,7 +419,7 @@ impl Client {
pub fn credential_routes_proxy_url(&self) -> String {
match self.path_style {
PathStyle::CodexApi => format!("{}/api/codex/credential_routes/proxy", self.base_url),
PathStyle::ChatGptApi => format!("{}/wham/credential_routes/proxy", self.base_url),
PathStyle::ChatGptApi => format!("{}/ps/credential_routes/proxy", self.base_url),
}
}
@@ -557,7 +557,7 @@ impl Client {
fn credential_routes_url(&self) -> String {
match self.path_style {
PathStyle::CodexApi => format!("{}/api/codex/credential_routes", self.base_url),
PathStyle::ChatGptApi => format!("{}/wham/credential_routes", self.base_url),
PathStyle::ChatGptApi => format!("{}/ps/credential_routes", self.base_url),
}
}
@@ -916,11 +916,11 @@ mod tests {
};
assert_eq!(
chatgpt_client.credential_routes_url(),
"https://chatgpt.com/backend-api/wham/credential_routes"
"https://chatgpt.com/backend-api/ps/credential_routes"
);
assert_eq!(
chatgpt_client.credential_routes_proxy_url(),
"https://chatgpt.com/backend-api/wham/credential_routes/proxy"
"https://chatgpt.com/backend-api/ps/credential_routes/proxy"
);
}
}