{!embedded && renderContextSelector()}
+ {/* Chat Provider/Model Selector */}
+ {llmProvider.providersWithPricing && llmProvider.providersWithPricing.length > 0 && (
+
+ )}
+
{/* Thinking mode toggle - only shown when current model supports thinking */}
{(() => {
- const currentProvider = llmProvider.providersWithPricing?.find(p => p.providerId === llmProvider.provider)
- const currentModel = currentProvider?.models.find(m => m.model === llmProvider.model)
+ const currentProvider = llmProvider.providersWithPricing?.find(p => p.providerId === chatLLMProvider.provider)
+ const currentModel = currentProvider?.models.find(m => m.model === chatLLMProvider.model)
return currentModel?.supportsThinking === true
})() && (
)}
- {/* Warning for missing inherited parameters */}
- {missingInheritedParams.length > 0 && (
+ {/* Warning for required inherited parameters that need values */}
+ {requiredInheritedParams.length > 0 && (
0 ? '12px' : '0',
padding: '10px 12px',
- background: 'rgba(245, 158, 11, 0.1)',
- border: '1px solid rgba(245, 158, 11, 0.3)',
+ background: 'rgba(239, 68, 68, 0.1)',
+ border: '1px solid rgba(239, 68, 68, 0.3)',
borderRadius: '6px',
display: 'flex',
flexDirection: 'column',
@@ -2737,25 +2778,25 @@ ${parsed.body.replace(/^\n+/, '')}`
gap: '6px',
fontSize: '12px',
fontWeight: 600,
- color: '#d97706'
+ color: '#ef4444'
}}>
- Missing Base Parameters
+ Required Parameters Need Values
- The following parameters are defined in the base template but not in this prompt.
- They won't be available during compilation unless you add them here:
+ These required parameters from the base template have no default value.
+ Set a default or they will fail at compile time:
- {missingInheritedParams.map(({ name, schema }) => {
+ {requiredInheritedParams.map(({ name, schema }) => {
const TypeIcon = getTypeIcon(schema.type)
return (
{
+ setExpandedParams(prev => {
+ const next = new Set(prev)
+ next.add(name)
+ return next
+ })
}}
>
-
-
+
+
{name}
- ({schema.type})
+ ({schema.type}, required)
- {schema.default !== undefined && (
-
- = {JSON.stringify(schema.default)}
-
- )}
)
})}
- {/* Add Missing Parameters button */}
- {!readOnly && (
-
- )}
)}