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) #3398

Closed
opened 2026-02-16 17:39:56 -05:00 by yindo · 3 comments
Owner

Originally created by @devahmedshendy on GitHub (Dec 8, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

  1. open models (/models).
  2. select any model from cloudflare (Cloudflare Workers AI).
  3. start old or new session with it.

Screenshot and/or share link

Image

Operating System

macOS 15.7.2

Terminal

fishshell

Originally created by @devahmedshendy on GitHub (Dec 8, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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 1. open models (`/models`). 2. select any model from cloudflare (`Cloudflare Workers AI`). 3. start old or new session with it. ### Screenshot and/or share link <img width="1875" height="223" alt="Image" src="https://github.com/user-attachments/assets/2df244b6-80a7-4654-861a-49e92790bb5c" /> ### Operating System macOS 15.7.2 ### Terminal fishshell
yindo added the bug label 2026-02-16 17:39:56 -05:00
yindo closed this issue 2026-02-16 17:39:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2025):

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.

@github-actions[bot] commented on GitHub (Dec 8, 2025): 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.
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

Yeah cloudflare team has a PR they are working on, it should be fixed soon

@rekram1-node commented on GitHub (Dec 8, 2025): Yeah cloudflare team has a PR they are working on, it should be fixed soon
Author
Owner

@elithrar commented on GitHub (Jan 26, 2026):

This was fixed in https://github.com/anomalyco/opencode/pull/6407

@elithrar commented on GitHub (Jan 26, 2026): This was fixed in https://github.com/anomalyco/opencode/pull/6407
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3398