Skip to content

Query field missing in BGE reranker interface #5998

@milesich

Description

@milesich

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.

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

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

Other

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions