diff --git a/infra/console.ts b/infra/console.ts index b7460683b0..29e473de37 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -272,7 +272,6 @@ new sst.cloudflare.x.SolidStart("Console", { new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!), ] : []), - new sst.Secret("PLACEHOLDER"), ], environment: { //VITE_DOCS_URL: web.url.apply((url) => url!), diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.ts index e8f69c99a3..e4b42d741e 100644 --- a/packages/console/app/src/routes/zen/util/handler.ts +++ b/packages/console/app/src/routes/zen/util/handler.ts @@ -75,11 +75,6 @@ export async function handler( parseIsStream: (url: string, body: any) => boolean }, ) { - // TODO - console.log("!@!@#!#!#!@#@!") - console.log(Resource.PLACEHOLDER.value) - console.log("!@!@#!#!#!@#@!") - type AuthInfo = Awaited> type ModelInfo = Awaited> type ProviderInfo = Awaited> diff --git a/packages/console/app/src/routes/zen/v1/keepalive.ts b/packages/console/app/src/routes/zen/v1/keepalive.ts new file mode 100644 index 0000000000..f8f53386d1 --- /dev/null +++ b/packages/console/app/src/routes/zen/v1/keepalive.ts @@ -0,0 +1,19 @@ +import { createHash } from "crypto" +import { ZenData } from "@opencode-ai/console-core/model.js" + +export async function GET() { + const zenData = ZenData.list("full") + return new Response( + JSON.stringify({ + hash: createHash("sha1").update(JSON.stringify(zenData)).digest("hex"), + timestamp: Date.now(), + check1: "alpha-di-k2.6" in zenData.models, + check2: "qwen3.6-plus-free" in zenData.models, + }), + { + headers: { + "Content-Type": "application/json", + }, + }, + ) +}