mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
sync
This commit is contained in:
parent
9ecb04e35b
commit
562d299a41
3 changed files with 19 additions and 6 deletions
|
|
@ -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!),
|
||||
|
|
|
|||
|
|
@ -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
packages/console/app/src/routes/zen/v1/keepalive.ts
Normal file
19
packages/console/app/src/routes/zen/v1/keepalive.ts
Normal 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",
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue