Commit 972b63e
committed
Fix TypeScript error: only include cost in providerMetadata when defined
1 parent 517434c commit 972b63e
4 files changed
Lines changed: 10 additions & 10 deletions
File tree
- packages/internal/src/openrouter-ai-sdk
- chat
- completion
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
913 | 913 | | |
914 | 914 | | |
915 | 915 | | |
916 | | - | |
917 | | - | |
| 916 | + | |
918 | 917 | | |
919 | 918 | | |
920 | 919 | | |
| |||
1282 | 1281 | | |
1283 | 1282 | | |
1284 | 1283 | | |
1285 | | - | |
1286 | | - | |
| 1284 | + | |
1287 | 1285 | | |
1288 | 1286 | | |
1289 | 1287 | | |
| |||
1385 | 1383 | | |
1386 | 1384 | | |
1387 | 1385 | | |
1388 | | - | |
1389 | | - | |
| 1386 | + | |
1390 | 1387 | | |
1391 | 1388 | | |
1392 | 1389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
551 | 553 | | |
552 | 554 | | |
553 | 555 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
| 495 | + | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
0 commit comments