chore: generate

This commit is contained in:
opencode-agent[bot]
2026-03-03 03:53:50 +00:00
parent 96d6fb78da
commit e41b53504f
2 changed files with 64 additions and 57 deletions

View File

@@ -557,8 +557,11 @@ export namespace Provider {
const metadata = iife(() => {
if (input.options?.metadata) return input.options.metadata
try { return JSON.parse(input.options?.headers?.["cf-aig-metadata"]) }
catch { return undefined }
try {
return JSON.parse(input.options?.headers?.["cf-aig-metadata"])
} catch {
return undefined
}
})
const opts = {
metadata,
@@ -572,7 +575,7 @@ export namespace Provider {
accountId,
gateway,
apiKey: apiToken,
...(Object.values(opts).some(v => v !== undefined) ? { options: opts } : {}),
...(Object.values(opts).some((v) => v !== undefined) ? { options: opts } : {}),
})
const unified = createUnified()