Repository navigation
Commit 3f0ccf7
committed
fix(provider): guard reasoningSummary for openai-compatible providers
@ai-sdk/openai-compatible proxies such as LiteLLM do not support the
reasoningSummary parameter and return an error when it is present:
Unknown parameter: 'reasoningSummary'
The variants() function already correctly scopes reasoningSummary to
@ai-sdk/openai, @ai-sdk/azure, and @ai-sdk/github-copilot. Apply the
same guard in options() to be consistent.
Fixes anomalyco#22350, anomalyco#21237, anomalyco#188821 parent 67aaeca commit 3f0ccf7
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | | - | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
836 | 845 | | |
837 | 846 | | |
838 | 847 | | |
| |||
0 commit comments