Skip to content

ai-openrouter: model sync (#1158) dropped OPENROUTER_COMBINED_TOOLS_AND_SCHEMA_MODELS, main doesn't build #1163

Description

@tombeckenham

Problem

chore: sync model metadata (#1158) (583ad2235) regenerated packages/ai-openrouter/src/model-meta.ts and deleted the hand-maintained block added by #836:

  • type OpenRouterCombinedToolsAndSchemaModelId
  • OPENROUTER_COMBINED_TOOLS_AND_SCHEMA_MODEL_IDS
  • export const OPENROUTER_COMBINED_TOOLS_AND_SCHEMA_MODELS

src/index.ts:83, src/internal/combined-tools-and-schema.ts:21 and docs/adapters/openrouter.md:139 still import it, so on main:

  • @tanstack/ai-openrouter:build, test:types, test:lib fail
  • root:test:kiira fails
  • every example / testing/ package depending on ai-openrouter fails test:pr

Latest Release run on main: https://github.com/TanStack/ai/actions/runs/32352172255

Root cause

scripts/sync-provider-models.ts rewrites model-meta.ts wholesale and has no notion of that hand-maintained list, so any sync run clobbers it.

Fix

Restore the list, and move it out of the generated file (into src/internal/combined-tools-and-schema.ts) so the sync can't drop it again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions