Eliminato chatgpt_base_url (B)
Da 24a3cfe2: via la chiave chatgpt_base_url e l'URL predefinito https://chatgpt.com/backend-api/
(la chiave resta accettata nei config e ignorata); schemi dell'app-server rigenerati.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -416,7 +416,8 @@ pub struct ConfigToml {
|
||||
/// `default`, `priority`, or `flex`; legacy `fast` also works).
|
||||
pub service_tier: Option<String>,
|
||||
|
||||
/// Base URL for requests to ChatGPT (as opposed to the OpenAI API).
|
||||
/// Ignored. Kept so existing config files still load.
|
||||
#[schemars(skip)]
|
||||
pub chatgpt_base_url: Option<String>,
|
||||
|
||||
/// Optional product SKU forwarded on host-owned Codex Apps MCP requests.
|
||||
@@ -1013,6 +1014,25 @@ mod tests {
|
||||
const WORKSPACE_ID_A: &str = "123e4567-e89b-42d3-a456-426614174000";
|
||||
const WORKSPACE_ID_B: &str = "123e4567-e89b-42d3-a456-426614174001";
|
||||
|
||||
#[test]
|
||||
fn removed_chatgpt_base_url_key_is_still_accepted() {
|
||||
let config: ConfigToml = toml::from_str(
|
||||
r#"
|
||||
chatgpt_base_url = "https://example.test/backend-api/"
|
||||
|
||||
[profiles.work]
|
||||
chatgpt_base_url = "https://example.test/backend-api/"
|
||||
"#,
|
||||
)
|
||||
.expect("config with the removed key should still load");
|
||||
assert!(config.profiles.contains_key("work"));
|
||||
|
||||
toml::from_str::<crate::ConfigRequirementsToml>(
|
||||
r#"chatgpt_base_url = "https://example.test/backend-api/""#,
|
||||
)
|
||||
.expect("requirements with the removed key should still load");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sandbox_mode_uses_executor_platform_and_sandbox_level() {
|
||||
use Platform::Linux;
|
||||
|
||||
Reference in New Issue
Block a user