cloudflare / cloudflare/workerd

Query field missing in BGE reranker interface

Open
#5,998 0 comments 1 reaction 2 assignees Claimed by @MattieTK View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

### What versions & operating system are you using?

```
System:
OS: macOS 15.7.1
CPU: (10) arm64 Apple M2 Pro
Memory: 64.61 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.20.0 - .nvm/versions/node/v22.20.0/bin/node
npm: 10.9.3 - .nvm/versions/node/v22.20.0/bin/npm
npmPackages:
wrangler: 4.54.0 => 4.54.0
```

### Please provide a link to a minimal reproduction

https://github.com/milesich/green-snowflake-9572

### Describe the Bug

After running `npx wrangler types` the generated file `worker-configuration.d.ts` is missing the query fields in `Ai_Cf_Baai_Bge_Reranker_Base_Input` interface.

```typescript
interface Ai_Cf_Baai_Bge_Reranker_Base_Input {
/**
* A query you wish to perform against the provided contexts.
*/
/**
* Number of returned results starting with the best score.
*/
top_k?: number;
/**
* List of provided contexts. Note that the index in this array is important, as the response will refer to it.
*/
contexts: {
/**
* One of the provided context content
*/
text?: string;
}[];
}

```
The comment describing the field is there just the field is missing.

### Please provide any relevant error logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.