Repository navigation
Commit b7214e4
committed
fix: cloudflare-ai-gateway sdk.chat undefined error
The @ai-sdk/openai-compatible SDK does not have a .chat() method - it
only exposes .languageModel() and .chatModel(). This caused the error:
sdk.chat is not a function. (In 'sdk.chat(modelID)', 'sdk.chat' is undefined)
Change to use .languageModel() which is the standard method available
on all AI SDK providers.
Fixes anomalyco#49771 parent a89089c commit b7214e4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
0 commit comments