get opencode free models

This commit is contained in:
2026-01-31 14:15:29 +00:00
parent 76e71d1f8a
commit 8196fb0bf6
2 changed files with 178 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ import { testDB } from "./db/client";
import { cleanupExpiredSessions } from "./db/queries";
import { withAuthedLogging, withLogging } from "./logger";
import { routes } from "./routes";
import { initializeFreeModelsCache } from "./routes/ai/opencode";
const DEV = process.argv.find((arg) => ["--dev", "--developer", "-d"].includes(arg.toLowerCase())) != null;
const PORT = process.argv.find((arg) => arg.toLowerCase().startsWith("--port="))?.split("=")[1] || 0;
@@ -121,6 +122,7 @@ const main = async () => {
console.log(`tnirps (sprint server) listening on ${server.url}`);
await testDB();
await initializeFreeModelsCache();
startSessionCleanup();
};