Skip to content

Conversation

@abromberg
Copy link
Contributor

Build was failing due to mismatch with @openrouter/sdk types. Simply renamed models.Sort to models.ProviderSort and it now builds.

Excerpt from build logs before patch:

DTS Build start
DTS Build start
src/types/openrouter-chat-settings.ts(119,19): error TS2694: Namespace '"[MYPATH]/Documents/ai-sdk-provider/node_modules/@openrouter/sdk/esm/models/index"' has no exported member 'Sort'.

Error: error occurred in dts build
    at Worker.<anonymous> ([MYPATH]/Documents/ai-sdk-provider/node_modules/tsup/dist/index.js:1545:26)
    at Worker.emit (node:events:518:28)
    at MessagePort.<anonymous> (node:internal/worker:268:53)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
DTS Build error
src/types/openrouter-chat-settings.ts(119,19): error TS2694: Namespace '"[MYPATH]/Documents/ai-sdk-provider/node_modules/@openrouter/sdk/esm/models/index"' has no exported member 'Sort'.

 ELIFECYCLE  Command failed with exit code 1.
npm error code 1
npm error path [MYPATH]/Documents/ai-sdk-provider
npm error command failed
npm error command sh -c pnpm run build
npm error A complete log of this run can be found in: [MYPATH]/.npm/_logs/2025-11-22T15_59_22_489Z-debug-0.log

After the fix it now builds correctly.

@subtleGradient subtleGradient merged commit 78d20ef into OpenRouterTeam:main Dec 1, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants