From 806173f7e31cc3f5afba3b20d251d8d0a7e1465e Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Fri, 31 Oct 2025 14:07:11 -0600 Subject: [PATCH 1/2] Available Models Utilizes Jason's new Array of Objects UI. --- salt/soc/defaults.yaml | 19 ++++++++++++++++--- salt/soc/soc_soc.yaml | 34 ++++++++++++++++++++++++++-------- 2 files changed, 42 insertions(+), 11 deletions(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index e9e65f7f4..d6b27b24e 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -2552,9 +2552,22 @@ soc: assistant: enabled: false investigationPrompt: Investigate Alert ID {socId} - contextLimitSmall: 200000 - contextLimitLarge: 1000000 thresholdColorRatioLow: 0.5 thresholdColorRatioMed: 0.75 thresholdColorRatioMax: 1 - lowBalanceColorAlert: 500000 \ No newline at end of file + availableModels: + - id: sonnet-4 + displayName: Claude Sonnet 4 + contextLimitSmall: 200000 + contextLimitLarge: 1000000 + lowBalanceColorAlert: 500000 + - id: sonnet-4.5 + displayName: Claude Sonnet 4.5 + contextLimitSmall: 200000 + contextLimitLarge: 1000000 + lowBalanceColorAlert: 500000 + - id: gptoss-120b + displayName: GPT-OSS 120B + contextLimitSmall: 200000 + contextLimitLarge: 1000000 + lowBalanceColorAlert: 500000 \ No newline at end of file diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 0a063f53e..8a31c977d 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -606,14 +606,6 @@ soc: investigationPrompt: description: Prompt given to Onion AI when beginning an investigation. global: True - contextLimitSmall: - description: Smaller context limit for Onion AI. - global: True - advanced: True - contextLimitLarge: - description: Larger context limit for Onion AI. - global: True - advanced: True thresholdColorRatioLow: description: Lower visual context color change threshold. global: True @@ -630,6 +622,32 @@ soc: description: Onion AI credit amount at which balance turns red. global: True advanced: True + availableModels: + description: List of AI models available for use in SOC as well as model specific warning thresholds. + global: True + advanced: True + forcedType: "[]{}" + helpLink: assistant.html + syntax: json + uiElements: + - field: id + label: Model ID + required: True + - field: displayName + label: Display Name + required: True + - field: contextLimitSmall + label: Context Limit (Small) + forcedType: int + required: True + - field: contextLimitLarge + label: Context Limit (Large) + forcedType: int + required: True + - field: lowBalanceColorAlert + label: Low Balance Color Alert + forcedType: int + required: True apiTimeoutMs: description: Duration (in milliseconds) to wait for a response from the SOC server API before giving up and showing an error on the SOC UI. global: True From f80b090c932e04ece75003b5c8c01a78f40aac3b Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Fri, 31 Oct 2025 14:48:30 -0600 Subject: [PATCH 2/2] Update limits --- salt/soc/defaults.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index d6b27b24e..813716f39 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -2568,6 +2568,6 @@ soc: lowBalanceColorAlert: 500000 - id: gptoss-120b displayName: GPT-OSS 120B - contextLimitSmall: 200000 - contextLimitLarge: 1000000 + contextLimitSmall: 128000 + contextLimitLarge: 128000 lowBalanceColorAlert: 500000 \ No newline at end of file