sync
This commit is contained in:
@@ -272,7 +272,6 @@ new sst.cloudflare.x.SolidStart("Console", {
|
|||||||
new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!),
|
new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!),
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
new sst.Secret("PLACEHOLDER"),
|
|
||||||
],
|
],
|
||||||
environment: {
|
environment: {
|
||||||
//VITE_DOCS_URL: web.url.apply((url) => url!),
|
//VITE_DOCS_URL: web.url.apply((url) => url!),
|
||||||
|
|||||||
@@ -75,11 +75,6 @@ export async function handler(
|
|||||||
parseIsStream: (url: string, body: any) => boolean
|
parseIsStream: (url: string, body: any) => boolean
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
// TODO
|
|
||||||
console.log("!@!@#!#!#!@#@!")
|
|
||||||
console.log(Resource.PLACEHOLDER.value)
|
|
||||||
console.log("!@!@#!#!#!@#@!")
|
|
||||||
|
|
||||||
type AuthInfo = Awaited<ReturnType<typeof authenticate>>
|
type AuthInfo = Awaited<ReturnType<typeof authenticate>>
|
||||||
type ModelInfo = Awaited<ReturnType<typeof validateModel>>
|
type ModelInfo = Awaited<ReturnType<typeof validateModel>>
|
||||||
type ProviderInfo = Awaited<ReturnType<typeof selectProvider>>
|
type ProviderInfo = Awaited<ReturnType<typeof selectProvider>>
|
||||||
|
|||||||
@@ -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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user