mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
Use public plugin service credential routes
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user