{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "BedrockProviderId": { "enum": [ "amazon-bedrock", "amazon-bedrock-runtime" ], "type": "string" }, "GcpProviderId": { "enum": [ "gcp" ], "type": "string" }, "ProviderSettingsPatch": { "description": "Omitted patch fields preserve their values. Explicit null clears a nullable field.", "oneOf": [ { "additionalProperties": false, "properties": { "baseUrl": { "type": [ "string", "null" ] }, "envKey": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "providerId": { "description": "Omit or pass null to allocate a new custom provider ID.", "type": [ "string", "null" ] }, "type": { "enum": [ "customGateway" ], "title": "CustomGatewayProviderSettingsPatchType", "type": "string" } }, "required": [ "type" ], "title": "CustomGatewayProviderSettingsPatch", "type": "object" }, { "additionalProperties": false, "description": "AWS configuration fields for built-in Bedrock providers.", "properties": { "profile": { "type": [ "string", "null" ] }, "providerId": { "$ref": "#/definitions/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/GcpProviderId" }, "type": { "enum": [ "gcp" ], "title": "GcpProviderSettingsPatchType", "type": "string" } }, "required": [ "providerId", "type" ], "title": "GcpProviderSettingsPatch", "type": "object" } ] } }, "properties": { "settings": { "$ref": "#/definitions/ProviderSettingsPatch" } }, "required": [ "settings" ], "title": "ModelProviderConfigWriteParams", "type": "object" }