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>
131 lines
2.9 KiB
JSON
Generated
131 lines
2.9 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"GatewayAuth": {
|
|
"oneOf": [
|
|
{
|
|
"properties": {
|
|
"mode": {
|
|
"enum": [
|
|
"none"
|
|
],
|
|
"title": "NoneGatewayAuthMode",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"mode"
|
|
],
|
|
"title": "NoneGatewayAuth",
|
|
"type": "object"
|
|
},
|
|
{
|
|
"properties": {
|
|
"envKey": {
|
|
"type": "string"
|
|
},
|
|
"mode": {
|
|
"enum": [
|
|
"environmentVariable"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"envKey",
|
|
"mode"
|
|
],
|
|
"type": "object"
|
|
},
|
|
{
|
|
"description": "Authentication is configured outside the gateway form. Preserve it on edits.",
|
|
"properties": {
|
|
"envKey": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"mode": {
|
|
"enum": [
|
|
"externallyConfigured"
|
|
],
|
|
"title": "ModeGatewayAuthMode",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"mode"
|
|
],
|
|
"title": "ModeGatewayAuth",
|
|
"type": "object"
|
|
}
|
|
]
|
|
},
|
|
"ModelProviderSummary": {
|
|
"properties": {
|
|
"baseUrl": {
|
|
"description": "Null when the endpoint is absent or cannot be safely displayed.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"canEdit": {
|
|
"description": "Whether a supported configuration field can be edited in the active user layer.",
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/ProviderSettings"
|
|
}
|
|
},
|
|
"required": [
|
|
"canEdit",
|
|
"id",
|
|
"name",
|
|
"settings"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ProviderSettings": {
|
|
"oneOf": [
|
|
{
|
|
"properties": {
|
|
"auth": {
|
|
"$ref": "#/definitions/GatewayAuth"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"customGateway"
|
|
],
|
|
"title": "CustomGatewayProviderSettingsType",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"auth",
|
|
"type"
|
|
],
|
|
"title": "CustomGatewayProviderSettings",
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"properties": {
|
|
"provider": {
|
|
"$ref": "#/definitions/ModelProviderSummary"
|
|
}
|
|
},
|
|
"required": [
|
|
"provider"
|
|
],
|
|
"title": "ModelProviderConfigWriteResponse",
|
|
"type": "object"
|
|
} |