Skip to content

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

Closed

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.

Activity

  1. added 2 commits that reference this issue on Aug 20, 2026
    a050da0
    328b48b
  2. added a commit that references this issue on Aug 20, 2026
    366b2ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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