Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

update claude model patterns to show reasoning efforts

Forhad Hosain3ddec44129f8
diff --git a/packages/app/src/builder-ui/constants.ts b/packages/app/src/builder-ui/constants.ts
index c9261e88..000d71d8 100644
--- a/packages/app/src/builder-ui/constants.ts
+++ b/packages/app/src/builder-ui/constants.ts
@@ -17,10 +17,10 @@ export const COMPONENT_STATE_KEY = 'component:state';
export const REASONING_EFFORTS = [
{
- // Claude Opus 4.6 supports 'low', 'medium', 'high', 'max' effort
- // 'max' is only available on Opus 4.6
+ // Claude Opus/Sonnet/Haiku version >= 4.6 supports 'low', 'medium', 'high', 'max' effort
+ // Dynamically matches all current and future versions (4-6, 4-7, 5-0, 5-9, 10-3, etc.)
// Default is 'high' (same as Anthropic API default)
- pattern: /^(claude-opus-4-6|smythos\/claude-opus-4-6)/i,
+ pattern: /^(smythos\/)?claude-(opus|sonnet|haiku)-(4-([6-9]|[1-9]\d+)|([5-9]|[1-9]\d+)-\d+)/i,
defaultValue: 'high',
options: [
{ text: 'Low', value: 'low' },
@@ -32,7 +32,7 @@ export const REASONING_EFFORTS = [
{
// Claude Opus 4.5 supports 'low', 'medium', 'high' effort
// Default is 'high' (same as Anthropic API default)
- pattern: /^(claude-opus-4-5|smythos\/claude-opus-4-5)/i,
+ pattern: /^(smythos\/)?claude-opus-4-5/i,
defaultValue: 'high',
options: [
{ text: 'Low', value: 'low' },