mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: make use openrouter ai sdk package to fix interlevened thinking models
This commit is contained in:
parent
8063e645c7
commit
cf934357c9
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue