Commit 84c8f51
fix(llm): map all providers to correct @ai-sdk npm package
customProviderFromEntry only handled "openai-compatible", leaving
"anthropic", "openai", "google", etc. with npm=undefined. This caused
the fallback to @ai-sdk/openai-compatible for all non-clickzetta custom
providers, sending /v1/chat/completions instead of the protocol-correct
endpoint (e.g. /v1/messages for Anthropic).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent e364de6 commit 84c8f51
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
305 | 315 | | |
306 | 316 | | |
307 | 317 | | |
| |||
0 commit comments