cloudflare / cloudflare/workerd
Type definitions missing for several Workers AI models released on 2025-09-24 (e.g. `@cf/pfnet/plamo-embedding-1b`)
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
Hey team!
It seems that several Workers AI models released on **2025-09-24** — including:
* `@cf/pfnet/plamo-embedding-1b`
* `@cf/aisingapore/gemma-sea-lion-v4-27b-it`
* `@cf/ai4bharat/indictrans2-en-indic-1B`
— are currently **not reflected in the `AiModels` type definitions**.
For example, trying to run:
```ts
const result = await env.AI.run("@cf/pfnet/plamo-embedding-1b", { text: "This is a story about an orange cloud."})
```
results in this TypeScript error:
```
Argument of type '"@cf/pfnet/plamo-embedding-1b"' is not assignable to parameter of type 'keyof AiModels'.
```
These models work fine at runtime (tested with a `compatibility_date` after `2025-09-24` & run with `wrangler@4.42.0`). like this:
```
{"data":[[-1.103283166885376,2.2276554107666016,7.545229434967041,-5.939915180206299,-2.7586913108825684,7.0649261474609375,-2.0057806968688965,-5.955329895019531,-2.3475096225738525,-3.66109561920166,-1.7786380052566528,1.6505837440490723,2.703437566757202,-1.8362157344818115,-4.832529544830322,-0.6350629329681396,-0.4430273473262787,2.1546638011932373,-5.8155951499938965,-3.9323267936706543,0.28225135803...
```
but they don’t appear in the generated typings.
Since `wrangler typegen` now provides the official TypeScript definitions (in place of `@cloudflare/workers-types`),
and internally references **`workerd`** for model metadata,
I believe this may be due to missing entries in the type definitions within this repo.
Not sure if these models are intentionally excluded (e.g. still considered experimental),
but wanted to raise it here just in case it’s an oversight.
Thanks a lot for checking! 🙏
Contributor guide
Assessment
This issue has not been assessed yet.