diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 6f9fc0226..0102dbd5e 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1494,10 +1494,19 @@ soc: branch: main folder: securityonion-normalized assistant: - apiUrl: https://onionai.securityonion.net - healthTimeoutSeconds: 3 systemPromptAddendum: "" systemPromptAddendumMaxLength: 50000 + adapters: + - name: SOAI + protocol: securityonion_ai_cloud + apiUrl: https://onionai.securityonion.net + healthTimeoutSeconds: 5 + - name: Gemini + protocol: gemini + apiKey: "" + serviceAccountJSON: "" + serviceAccountLocation: "" + healthTimeoutSeconds: 5 salt: queueDir: /opt/sensoroni/queue timeoutMs: 45000 @@ -2659,6 +2668,7 @@ soc: contextLimitLarge: 1000000 lowBalanceColorAlert: 500000 enabled: true + adapter: SOAI - id: qwen-235b displayName: QWEN 235B ($) origin: China @@ -2666,3 +2676,4 @@ soc: contextLimitLarge: 256000 lowBalanceColorAlert: 500000 enabled: true + adapter: SOAI diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index a9b09b813..2086492ad 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -650,13 +650,6 @@ soc: label: Folder airgap: *pbRepos assistant: - apiUrl: - description: The URL of the AI gateway. - global: True - healthTimeoutSeconds: - description: Timeout in seconds for the Onion AI health check. - global: True - advanced: True systemPromptAddendum: description: Additional context to provide to the AI assistant about this SOC deployment. This can include information about your environment, policies, or any other relevant details that can help the AI provide more accurate and tailored assistance. Long prompts may be shortened. global: True @@ -666,6 +659,40 @@ soc: description: Maximum length of the system prompt addendum. Longer prompts will be truncated. global: True advanced: True + adapters: + description: Configuration for AI adapters used by the Onion AI assistant. + global: True + advanced: True + forcedType: "[]{}" + syntax: json + uiElements: + - field: name + label: Adapter Name + regex: "^(?!.*@).+$" + regexFailureMessage: Adapter name cannot contain the '@' character + required: True + - field: protocol + label: Protocol + required: True + options: + - securityonion_ai_cloud + - gemini + - field: apiUrl + label: API URL + required: False + - field: apiKey + label: API Key + required: False + - field: serviceAccountJSON + label: Service Account JSON + required: False + multiline: True + - field: serviceAccountLocation + label: Service Account Location + required: False + - field: healthTimeoutSeconds + label: Health Timeout Seconds + required: False client: assistant: enabled: @@ -704,6 +731,8 @@ soc: - field: id label: Model ID required: True + regex: "^(?!.*@).+$" + regexFailureMessage: Model ID cannot contain the '@' character - field: displayName label: Display Name required: True