Commit 1511241
committed
fix(providers): lift @ts-nocheck on Gemini + OpenRouter
GeminiProvider needed one type addition: GeminiGenerationConfig
gains a responseSchema?: Record<string, unknown> field so the
constrained-decoding path at line 741 type-checks.
OpenRouterProvider needed one signature fix: line 487 was passing
apiResponse.id (string) to OpenRouterProviderError's httpStatus
(number) slot. Moved it to details as { responseId: apiResponse.id }.
OpenAIProvider keeps @ts-nocheck because the file references a
phantom OpenAIAPITypes namespace that was never imported — that
needs the openai SDK as a real dependency, not a one-liner.1 parent f87d0e2 commit 1511241
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
485 | 484 | | |
486 | 485 | | |
487 | 486 | | |
488 | | - | |
| 487 | + | |
489 | 488 | | |
490 | 489 | | |
491 | 490 | | |
| |||
0 commit comments