feat: default evolution reasoning level to Haiku
Le niveau "Normal (Sonnet)" était présélectionné par défaut dans le formulaire et côté serveur. Vu le quota Pro limité, le choix par défaut passe à "Rapide (Haiku)" ; Sonnet et Opus restent disponibles pour les cas qui le justifient (l'avertissement de confirmation sur Opus reste inchangé). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SfihHazrSHXgndJtSNLubJ
This commit is contained in:
parent
a7b2a12bd7
commit
69045dd196
2 changed files with 3 additions and 3 deletions
|
|
@ -227,7 +227,7 @@ export function registerRoutes(router, app) {
|
||||||
}));
|
}));
|
||||||
router.post('/api/projects/:id/evolution', jobRoute('evolution', (b) => ({
|
router.post('/api/projects/:id/evolution', jobRoute('evolution', (b) => ({
|
||||||
count: int(b.count, 1, 20, 5),
|
count: int(b.count, 1, 20, 5),
|
||||||
level: ['rapide', 'normal', 'approfondi'].includes(b.level) ? b.level : 'normal',
|
level: ['rapide', 'normal', 'approfondi'].includes(b.level) ? b.level : 'rapide',
|
||||||
})));
|
})));
|
||||||
router.post('/api/projects/:id/send', jobRoute('send', (b) => ({ count: int(b.count, 1, 100, 10) }), (p, b) => {
|
router.post('/api/projects/:id/send', jobRoute('send', (b) => ({ count: int(b.count, 1, 100, 10) }), (p, b) => {
|
||||||
if (!b.confirm) throw new HttpError(400, 'Confirmation requise');
|
if (!b.confirm) throw new HttpError(400, 'Confirmation requise');
|
||||||
|
|
|
||||||
|
|
@ -202,8 +202,8 @@ function projectItem(p, smtp, dbCfg, imap) {
|
||||||
<form data-action="evolution" data-id="${p.id}" class="inline">
|
<form data-action="evolution" data-id="${p.id}" class="inline">
|
||||||
<label>Nombre d'évolutions<input name="count" type="number" min="1" max="20" value="5"></label>
|
<label>Nombre d'évolutions<input name="count" type="number" min="1" max="20" value="5"></label>
|
||||||
<label>Raisonnement<select name="level">
|
<label>Raisonnement<select name="level">
|
||||||
<option value="rapide">Rapide (Haiku)</option>
|
<option value="rapide" selected>Rapide (Haiku, économe)</option>
|
||||||
<option value="normal" selected>Normal (Sonnet)</option>
|
<option value="normal">Normal (Sonnet, plus cher)</option>
|
||||||
<option value="approfondi">Approfondi (Opus, coûteux)</option>
|
<option value="approfondi">Approfondi (Opus, coûteux)</option>
|
||||||
</select></label>
|
</select></label>
|
||||||
<label>Quand<select name="when"><option value="now">Maintenant</option><option value="night">Cette nuit (1h-6h)</option></select></label>
|
<label>Quand<select name="when"><option value="now">Maintenant</option><option value="night">Cette nuit (1h-6h)</option></select></label>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue