mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
fix: make use openrouter ai sdk package to fix interlevened thinking models
This commit is contained in:
parent
8063e645c7
commit
cf934357c9
@ -468,7 +468,14 @@ export namespace Provider {
|
||||
delete providers[providerID]
|
||||
continue
|
||||
}
|
||||
log.info("found", { providerID })
|
||||
|
||||
// TODO: set this in models.dev, not set due to breaking issues on older OC versions
|
||||
// u have to set include usage to true w/ this provider, setting in models.dev would cause undefined issue when accessing usage in older versions
|
||||
if (providerID === "openrouter") {
|
||||
provider.info.npm = "@openrouter/ai-sdk-provider"
|
||||
}
|
||||
|
||||
log.info("found", { providerID, npm: provider.info.npm })
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user