fix: openrouter ai sdk package support

This commit is contained in:
Aiden Cline
2025-11-19 14:22:51 -06:00
parent 48e4f2f45d
commit 9d068c20bb
2 changed files with 12 additions and 0 deletions

View File

@@ -494,6 +494,7 @@ export namespace Provider {
if (pkg.includes("@ai-sdk/openai-compatible") && options["includeUsage"] === undefined) {
options["includeUsage"] = true
}
const key = Bun.hash.xxHash32(JSON.stringify({ pkg, options }))
const existing = s.sdk.get(key)
if (existing) return existing