aKode: eliminato chatgpt_base_url ormai inutilizzato
- La chiave è ancora accettata nei file di configurazione ma ignorata. - Schemi JSON e TypeScript dell'app-server rigenerati; i bundle ora si chiamano akode_app_server_protocol*.schemas.json, come produce il generatore. - app-server: niente più avviso unused_mut nella build release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1146,12 +1146,6 @@ pub struct Config {
|
||||
/// Optional verbosity control for GPT-5 models (Responses API `text.verbosity`).
|
||||
pub model_verbosity: Option<Verbosity>,
|
||||
|
||||
/// Base URL for requests to ChatGPT (as opposed to the OpenAI API).
|
||||
pub chatgpt_base_url: String,
|
||||
|
||||
/// Whether configuration or managed requirements explicitly selected the ChatGPT base URL.
|
||||
pub chatgpt_base_url_is_explicit: bool,
|
||||
|
||||
/// Whether Codex-owned clients should respect host system proxy settings.
|
||||
pub respect_system_proxy: bool,
|
||||
|
||||
@@ -3479,22 +3473,12 @@ impl Config {
|
||||
config_layer_stack.requirements(),
|
||||
&mut startup_warnings,
|
||||
);
|
||||
// Packaged defaults supply a URL even when no override was configured.
|
||||
let chatgpt_base_url_is_explicit =
|
||||
config_layer_stack.requirements().chatgpt_base_url.is_some()
|
||||
|| config_layer_stack
|
||||
.layers_high_to_low()
|
||||
.find(|layer| layer.config.get("chatgpt_base_url").is_some())
|
||||
.map_or(cfg.chatgpt_base_url.is_some(), |layer| {
|
||||
!matches!(layer.name, ConfigLayerSource::PackagedDefaults { .. })
|
||||
});
|
||||
// Destructure every field to ensure ConfigRequirements additions are
|
||||
// either applied above or handled while constructing the final Config.
|
||||
let ConfigRequirements {
|
||||
allowed_login_methods: _,
|
||||
allowed_chatgpt_workspaces: _,
|
||||
cli_auth_credentials_store,
|
||||
chatgpt_base_url: _,
|
||||
sqlite_home: _,
|
||||
unsafe_enforce_sqlite_journal_mode,
|
||||
log_dir: _,
|
||||
@@ -4001,7 +3985,6 @@ impl Config {
|
||||
feature_enabled: enable_network_proxy,
|
||||
features: cfg.features.as_ref(),
|
||||
candidate_permission_profile: &permission_profile,
|
||||
credential_broker_base_url: cfg.openai_base_url.as_deref(),
|
||||
});
|
||||
if cfg.approval_policy == Some(AskForApproval::UnlessTrusted) {
|
||||
return Err(std::io::Error::new(
|
||||
@@ -4771,9 +4754,6 @@ impl Config {
|
||||
model_reasoning_summary: cfg.model_reasoning_summary,
|
||||
model_catalog,
|
||||
model_verbosity: cfg.model_verbosity,
|
||||
chatgpt_base_url_is_explicit,
|
||||
// No ChatGPT backend default: empty unless explicitly configured.
|
||||
chatgpt_base_url: cfg.chatgpt_base_url.unwrap_or_default(),
|
||||
respect_system_proxy,
|
||||
apps_mcp_product_sku: cfg.apps_mcp_product_sku.clone(),
|
||||
responses_api_metadata: cfg.responses_api_metadata.unwrap_or_default(),
|
||||
@@ -5077,7 +5057,6 @@ impl Config {
|
||||
&& self.features.enabled(Feature::NetworkProxy),
|
||||
features: cfg.features.as_ref(),
|
||||
candidate_permission_profile: permission_profile,
|
||||
credential_broker_base_url: cfg.openai_base_url.as_deref(),
|
||||
});
|
||||
build_network_proxy_spec(
|
||||
prepared_network.configured_proxy,
|
||||
|
||||
Reference in New Issue
Block a user