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:
andrea.difonzo
2026-11-17 12:31:29 +01:00
parent 22a79feba1
commit 2f8b6a3e16
481 changed files with 4319 additions and 25142 deletions

View File

@@ -6436,43 +6436,6 @@
],
"title": "ApiKeyAccount",
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"amazonBedrock"
],
"title": "AmazonBedrockAccountType",
"type": "string"
},
"usesCodexManagedCredentials": {
"default": false,
"type": "boolean"
}
},
"required": [
"type"
],
"title": "AmazonBedrockAccount",
"type": "object"
},
{
"description": "Google Cloud Vertex AI with externally managed credentials.",
"properties": {
"type": {
"enum": [
"gcp"
],
"title": "GcpAccountType",
"type": "string"
}
},
"required": [
"type"
],
"title": "GcpAccount",
"type": "object"
}
]
},
@@ -7270,20 +7233,6 @@
"headers"
],
"type": "string"
},
{
"description": "Amazon Bedrock bearer token managed by Codex.",
"enum": [
"bedrockApiKey"
],
"type": "string"
},
{
"description": "Amazon Bedrock AWS access keys managed by Codex.",
"enum": [
"bedrockAccessKeys"
],
"type": "string"
}
]
},
@@ -7361,13 +7310,6 @@
},
"type": "object"
},
"BedrockProviderId": {
"enum": [
"amazon-bedrock",
"amazon-bedrock-runtime"
],
"type": "string"
},
"BrowserUseAccessApprovalLifetime": {
"enum": [
"turn",
@@ -8830,7 +8772,9 @@
{
"type": "null"
}
]
],
"default": null,
"description": "The web search mode. A `[web_search]` backend table reports its `mode`, if any."
}
},
"type": "object"
@@ -11992,12 +11936,6 @@
],
"type": "string"
},
"GcpProviderId": {
"enum": [
"gcp"
],
"type": "string"
},
"GetAccountParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "GetAccountParams",
@@ -13451,66 +13389,6 @@
],
"title": "ApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
"properties": {
"apiKey": {
"type": "string"
},
"region": {
"type": "string"
},
"type": {
"enum": [
"amazonBedrock"
],
"title": "AmazonBedrockv2::LoginAccountParamsType",
"type": "string"
}
},
"required": [
"apiKey",
"region",
"type"
],
"title": "AmazonBedrockv2::LoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
"properties": {
"accessKeyId": {
"type": "string"
},
"region": {
"type": "string"
},
"secretAccessKey": {
"type": "string"
},
"sessionToken": {
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"amazonBedrockAccessKeys"
],
"title": "AmazonBedrockAccessKeysv2::LoginAccountParamsType",
"type": "string"
}
},
"required": [
"accessKeyId",
"region",
"secretAccessKey",
"type"
],
"title": "AmazonBedrockAccessKeysv2::LoginAccountParams",
"type": "object"
}
],
"title": "LoginAccountParams"
@@ -13533,22 +13411,6 @@
],
"title": "ApiKeyv2::LoginAccountResponse",
"type": "object"
},
{
"properties": {
"type": {
"enum": [
"amazonBedrock"
],
"title": "AmazonBedrockv2::LoginAccountResponseType",
"type": "string"
}
},
"required": [
"type"
],
"title": "AmazonBedrockv2::LoginAccountResponse",
"type": "object"
}
],
"title": "LoginAccountResponse"
@@ -16479,22 +16341,6 @@
},
"ProviderSettings": {
"oneOf": [
{
"properties": {
"type": {
"enum": [
"openai"
],
"title": "OpenaiProviderSettingsType",
"type": "string"
}
},
"required": [
"type"
],
"title": "OpenaiProviderSettings",
"type": "object"
},
{
"properties": {
"auth": {
@@ -16514,69 +16360,6 @@
],
"title": "CustomGatewayProviderSettings",
"type": "object"
},
{
"properties": {
"profile": {
"type": [
"string",
"null"
]
},
"region": {
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"bedrock"
],
"title": "BedrockProviderSettingsType",
"type": "string"
}
},
"required": [
"type"
],
"title": "BedrockProviderSettings",
"type": "object"
},
{
"properties": {
"credentialFile": {
"description": "Path on the app-server host, without credential-file contents.",
"type": [
"string",
"null"
]
},
"location": {
"type": [
"string",
"null"
]
},
"projectId": {
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"gcp"
],
"title": "GcpProviderSettingsType",
"type": "string"
}
},
"required": [
"type"
],
"title": "GcpProviderSettings",
"type": "object"
}
]
},
@@ -16621,80 +16404,6 @@
],
"title": "CustomGatewayProviderSettingsPatch",
"type": "object"
},
{
"additionalProperties": false,
"description": "AWS configuration fields for built-in Bedrock providers.",
"properties": {
"profile": {
"type": [
"string",
"null"
]
},
"providerId": {
"$ref": "#/definitions/v2/BedrockProviderId"
},
"region": {
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"bedrock"
],
"title": "BedrockProviderSettingsPatchType",
"type": "string"
}
},
"required": [
"providerId",
"type"
],
"title": "BedrockProviderSettingsPatch",
"type": "object"
},
{
"additionalProperties": false,
"description": "GCP configuration fields. Credential-file paths refer to the app-server host.",
"properties": {
"credentialFile": {
"type": [
"string",
"null"
]
},
"location": {
"type": [
"string",
"null"
]
},
"projectId": {
"type": [
"string",
"null"
]
},
"providerId": {
"$ref": "#/definitions/v2/GcpProviderId"
},
"type": {
"enum": [
"gcp"
],
"title": "GcpProviderSettingsPatchType",
"type": "string"
}
},
"required": [
"providerId",
"type"
],
"title": "GcpProviderSettingsPatch",
"type": "object"
}
]
},