Sonnet 5.5 as the default AI model, and a model list with prices (1.6.1)

Settings -> AI picks the model from a list (utils/aiModels.js: Sonnet,
Haiku, Opus 5.5 with list prices) or takes another model ID; choosing
one fills in its prices. Blank prices use the built-in ones, and cache
reads are metered at each model's own price.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 17:21:30 +02:00
co-authored by Claude Opus 5.5
parent 160ff3b927
commit ae7e10844d
12 changed files with 131 additions and 26 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ const { VERSION_RE, sortReleases, syncLatestVersion } = require('../utils/releas
const { emailNotice } = require('../utils/notices');
const { parseRepoUrl, syncReleases } = require('../utils/releaseSync');
const ai = require('../utils/ai');
const { AI_MODELS } = require('../utils/aiModels');
const router = express.Router();
router.use(protect);
@@ -384,7 +385,7 @@ router.delete('/notices/:id', wrap(async (req, res) => {
// ─── Settings ─────────────────────────────────────────────────────────────────
router.get('/settings', wrap(async (req, res) => {
res.json({ settings: await getSettings(), publicKey: licenceToken.keyPair().publicKeyPem, smtp: await smtpConfigured() });
res.json({ settings: await getSettings(), publicKey: licenceToken.keyPair().publicKeyPem, smtp: await smtpConfigured(), aiModels: AI_MODELS });
}));
const SMTP_FIELDS = ['smtp_host', 'smtp_port', 'smtp_user', 'smtp_pass', 'smtp_pass_clear', 'smtp_from'];