Rimossi i provider integrati OpenAI, Bedrock e GCP e ogni fallback a OpenAI (B)
Parte "sicurezza" della fase 3 di aKode (e39aae00), senza le funzioni di imeAI:
- via i provider integrati openai, amazon-bedrock, amazon-bedrock-runtime e gcp
(crate model-provider: moduli amazon_bedrock, gcp, chatgpt_base_url; login Bedrock;
onboarding Bedrock/GCP; richieste app-server di setup cloud);
- nessun URL predefinito verso api.openai.com / chatgpt.com: un provider senza
base_url non viene mai contattato; senza model_provider configurato exec e TUI
mostrano come scriverne uno in config.toml (NO_MODEL_PROVIDER_CONFIGURED_ERROR);
- via la skill openai-docs, la sample skill-installer (scaricava da github.com/openai/skills),
request_plugin_install, AppsInstructions, URL predefiniti di realtime e updater;
- test di sicurezza adattati (provider "mock" al posto di quello integrato), non cancellati.
Restano fuori da questo commit (categoria F/D/E, non portate): chiave per provider nel
portachiavi, modelli da /models, unione dei messaggi di sistema, crate web-tools e
SearXNG, header @@ in apply_patch, modello ausiliario, tool function per apply_patch.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,7 @@ fn mcp_list_reports_invalid_keybinding_reason() -> Result<()> {
|
||||
.get_output()
|
||||
.stderr
|
||||
.clone();
|
||||
let output = String::from_utf8(output)?;
|
||||
let output = normalize_config_location(&String::from_utf8(output)?);
|
||||
insta::allow_duplicates! {
|
||||
insta::assert_snapshot!(output);
|
||||
}
|
||||
@@ -304,3 +304,23 @@ fn no_daemon_rejects_queue_and_explicit_remote_targets() -> Result<()> {
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Replaces `<temp home>/config.toml:<line>:<column>` with a stable placeholder.
|
||||
fn normalize_config_location(output: &str) -> String {
|
||||
output
|
||||
.lines()
|
||||
.map(|line| match line.find("/config.toml:") {
|
||||
Some(index) => {
|
||||
let start = line[..index].rfind(' ').map_or(0, |space| space + 1);
|
||||
let rest = &line[index + "/config.toml:".len()..];
|
||||
let after_location = rest.splitn(3, ':').nth(2).unwrap_or_default();
|
||||
format!(
|
||||
"{}[CODEX_HOME]/config.toml:<line>:<column>:{after_location}",
|
||||
&line[..start]
|
||||
)
|
||||
}
|
||||
None => line.to_string(),
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user