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:
@@ -24,8 +24,6 @@ const FOCUS_PROBE_INPUT: &str = "focus-palette-24527";
|
||||
|
||||
#[path = "external_editor_tests.rs"]
|
||||
mod external_editor;
|
||||
#[path = "gov_cloud_guidance_tests.rs"]
|
||||
mod gov_cloud_guidance;
|
||||
#[path = "tui_mode_picker_tests.rs"]
|
||||
mod tui_mode_picker;
|
||||
|
||||
@@ -570,11 +568,23 @@ fn contains_bytes(buffer: &[u8], needle: &[u8]) -> bool {
|
||||
|
||||
pub(super) fn write_test_config(codex_home: &Path, repo_root: &Path) -> Result<()> {
|
||||
let repo_root = repo_root.display();
|
||||
// aKode has no built-in catalog provider: give the mock provider the bundled catalog.
|
||||
let catalog_path = codex_home.join("test-models.json");
|
||||
std::fs::write(
|
||||
&catalog_path,
|
||||
serde_json::to_vec(&codex_models_manager::bundled_models_response()?)?,
|
||||
)
|
||||
.context("write focus-test model catalog")?;
|
||||
let catalog_path = catalog_path.display().to_string();
|
||||
let config = format!(
|
||||
"model = \"gpt-5.6-terra\"\nmodel_provider = \"openai\"\n\
|
||||
"model = \"gpt-5.6-terra\"\nmodel_provider = \"mock\"\n\
|
||||
model_catalog_json = {catalog_path:?}\n\
|
||||
suppress_unstable_features_warning = true\n\
|
||||
features.daemon_auto_start = false\n\
|
||||
notice.model_migrations.\"gpt-5.6-terra\" = \"gpt-6-sol\"\n\n\
|
||||
[model_providers.mock]\nname = \"Mock\"\nbase_url = \"http://127.0.0.1:9/v1\"\n\
|
||||
wire_api = \"responses\"\nrequires_openai_auth = true\n\
|
||||
merge_system_messages = false\n\n\
|
||||
[projects.\"{repo_root}\"]\ntrust_level = \"trusted\"\n"
|
||||
);
|
||||
std::fs::write(codex_home.join("config.toml"), config)
|
||||
|
||||
Reference in New Issue
Block a user