This commit is contained in:
Frank 2026-05-21 15:46:54 -04:00
parent 9ecb04e35b
commit 562d299a41
3 changed files with 19 additions and 6 deletions

View file

@ -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!),

View file

@ -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>>

View file

@ -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",
},
},
)
}