Rebuild printable roast plans and remove machine-based adjustments
Test and deploy / test-and-deploy (push) Successful in 2m28s

This commit is contained in:
snowspeeder committed 2026-09-05 14:56:11 -04:00
1 parent e9f2393c96
commit 824a964f9d
30 files changed
+1721 -908

No files matched your search

+3 -16
View File
@@ -1467,20 +1467,7 @@ export function createApp({
} catch (e) {
return res.status(400).json({ ok: false, code: "bad_messages", error: e.message });
}
const [roasterProfile, planRows, preferredModel] = await Promise.all([
userRoasterProfile(req.user.id),
db
.query("SELECT plan FROM roast_plans WHERE user_id=$1", [req.user.id])
.then((r) => r.rows.map((row) => row.plan)),
llmModelSetting(),
]);
const result = await runPlanChat({
plan: req.body.plan,
messages,
machineProfile: computeMachineProfile(planRows),
roasterProfile,
preferredModel,
});
const result = await runPlanChat({ plan: req.body.plan, messages, preferredModel: await llmModelSetting() });
res.json({ ok: true, ...result });
} catch (err) {
const code = err.code ?? "chat_failed";
@@ -3279,10 +3266,10 @@ export function createApp({
app.get("/api/openapi.json", requireAuth, (req, res) =>
res.json(buildOpenApiSpec({ origin })),
);
app.get("/api/alog/library", requireAuth, async (_q, res) =>
app.get("/api/alog/library", requireAuth, admin, async (_q, res) =>
res.json({ ok: true, files: await listAlogLibrary() }),
);
app.get("/api/alog/library/:filename", requireAuth, async (req, res) => {
app.get("/api/alog/library/:filename", requireAuth, admin, async (req, res) => {
try {
res.json({
ok: true,