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:
andrea.difonzo
2026-11-17 12:39:59 +01:00
parent 7effb5ec86
commit 499ee3a939
63 changed files with 160 additions and 532 deletions

View File

@@ -1,6 +1,3 @@
use anyhow::Result;
use app_test_support::TestAppServer;
use app_test_support::write_mock_responses_config_toml_with_chatgpt_base_url;
use akode_app_server::INVALID_PARAMS_ERROR_CODE;
use akode_app_server_protocol::ActivePermissionProfile;
use akode_app_server_protocol::JSONRPCError;
@@ -16,6 +13,9 @@ use akode_protocol::models::FunctionCallOutputPayload;
use akode_protocol::models::ImageDetail;
use akode_protocol::models::ImageReference;
use akode_protocol::models::ResponseItem;
use anyhow::Result;
use app_test_support::MockResponsesConfig;
use app_test_support::TestAppServer;
use pretty_assertions::assert_eq;
use serde_json::json;
use std::time::Duration;
@@ -155,11 +155,7 @@ async fn thread_start_keeps_unknown_field_compatibility_with_named_permissions()
#[tokio::test]
async fn request_handlers_reject_remote_image_urls() -> Result<()> {
let codex_home = TempDir::new()?;
write_mock_responses_config_toml_with_chatgpt_base_url(
codex_home.path(),
"http://localhost/unused",
"http://localhost/unused",
)?;
MockResponsesConfig::new("http://localhost/unused").write(codex_home.path())?;
let mut mcp = TestAppServer::builder()
.with_codex_home(codex_home.path())
.build_initialized_with_timeout(DEFAULT_READ_TIMEOUT)