@tpitre/story-ui 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -160,22 +160,22 @@ const useResizable = (initialWidth: number, minWidth: number, maxWidth: number)
|
|
|
160
160
|
return { width, startResize };
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
// Default models for fallback
|
|
163
|
+
// Default models for fallback - Updated November 2025
|
|
164
164
|
const DEFAULT_MODELS: Record<string, ModelOption[]> = {
|
|
165
165
|
claude: [
|
|
166
|
-
{ id: 'claude-
|
|
167
|
-
{ id: 'claude-sonnet-4-
|
|
168
|
-
{ id: 'claude-
|
|
166
|
+
{ id: 'claude-opus-4-5-20251101', name: 'Opus 4.5', provider: 'claude' },
|
|
167
|
+
{ id: 'claude-sonnet-4-5-20250929', name: 'Sonnet 4.5', provider: 'claude' },
|
|
168
|
+
{ id: 'claude-opus-4-1-20250805', name: 'Opus 4.1', provider: 'claude' },
|
|
169
169
|
],
|
|
170
170
|
openai: [
|
|
171
|
-
{ id: 'gpt-
|
|
172
|
-
{ id: 'gpt-
|
|
173
|
-
{ id: 'gpt-4-
|
|
171
|
+
{ id: 'gpt-4.1-2025-04-14', name: 'GPT-4.1', provider: 'openai' },
|
|
172
|
+
{ id: 'gpt-4.1-mini-2025-04-14', name: 'GPT-4.1 Mini', provider: 'openai' },
|
|
173
|
+
{ id: 'gpt-4.1-nano-2025-04-14', name: 'GPT-4.1 Nano', provider: 'openai' },
|
|
174
174
|
],
|
|
175
175
|
gemini: [
|
|
176
|
+
{ id: 'gemini-2.5-pro', name: 'Gemini 2.5 Pro', provider: 'gemini' },
|
|
177
|
+
{ id: 'gemini-2.5-flash', name: 'Gemini 2.5 Flash', provider: 'gemini' },
|
|
176
178
|
{ id: 'gemini-2.0-flash', name: 'Gemini 2.0 Flash', provider: 'gemini' },
|
|
177
|
-
{ id: 'gemini-1.5-pro', name: 'Gemini 1.5 Pro', provider: 'gemini' },
|
|
178
|
-
{ id: 'gemini-1.5-flash', name: 'Gemini 1.5 Flash', provider: 'gemini' },
|
|
179
179
|
],
|
|
180
180
|
};
|
|
181
181
|
|
|
@@ -761,6 +761,8 @@ MODIFICATION RULES:
|
|
|
761
761
|
3. Preserve existing styling, layout, and components not mentioned
|
|
762
762
|
4. Output the COMPLETE modified JSX (not just the changed parts)
|
|
763
763
|
|
|
764
|
+
IMPORTANT: User requests OVERRIDE design system defaults. If the user asks to change colors, styling, or any other aspect, follow their request exactly - even if it differs from the design system guidelines above.
|
|
765
|
+
|
|
764
766
|
OUTPUT: Start immediately with < and output only the complete modified JSX.`;
|
|
765
767
|
} else {
|
|
766
768
|
// New generation prompt
|
|
@@ -1107,7 +1109,7 @@ OUTPUT: Start immediately with < and output only JSX.`;
|
|
|
1107
1109
|
}}
|
|
1108
1110
|
>
|
|
1109
1111
|
{serverConfig.models.map(model => (
|
|
1110
|
-
<option key={model.id} value={model.id}>{model.
|
|
1112
|
+
<option key={model.id} value={model.id}>{model.name}</option>
|
|
1111
1113
|
))}
|
|
1112
1114
|
</select>
|
|
1113
1115
|
|