Skip to content

Commit 78d20ef

Browse files
authored
fix: mismatch with sdk types causing build error (#246)
* fix sorting type so package builds * added changeset
1 parent 8292401 commit 78d20ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/smooth-bikes-do.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openrouter/ai-sdk-provider": patch
3+
---
4+
5+
build was failing due to mismatch with @openrouter/sdk types. simply renamed models.Sort to models.ProviderSort and it now builds

src/types/openrouter-chat-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ monitor and detect abuse. Learn more.
116116
/**
117117
* Sort providers by price, throughput, or latency
118118
*/
119-
sort?: models.Sort;
119+
sort?: models.ProviderSort;
120120
/**
121121
* Maximum pricing you want to pay for this request
122122
*/

0 commit comments

Comments
 (0)