opencode
opencode copied to clipboard
Everytime I communicate with any model from Cloudflare Workers AI, opencode logs error `sdk.languageModel is not a function. (In 'sdk.languageModel(model.api.id)', 'sdk.languageModel' is undefined)
Description
Any model I select from cloudflare, I get an error printed, but opencode doesn't crash, I can continue with model from another provider though.
OpenCode version
1.0.134
Steps to reproduce
- open models (
/models). - select any model from cloudflare (
Cloudflare Workers AI). - start old or new session with it.
Screenshot and/or share link
Operating System
macOS 15.7.2
Terminal
fishshell
This issue might be a duplicate of existing issues. Please check:
- #2223: Cloudflare Workers AI models not appearing in interactive interface
Feel free to ignore if none of these address your specific case.
Yeah cloudflare team has a PR they are working on, it should be fixed soon