Frank 3 месяцев назад
Родитель
Сommit
562d299a41

+ 0 - 1
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!),

+ 0 - 5
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<ReturnType<typeof authenticate>>
   type ModelInfo = Awaited<ReturnType<typeof validateModel>>
   type ProviderInfo = Awaited<ReturnType<typeof selectProvider>>

+ 19 - 0
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",
+      },
+    },
+  )
+}