Model Catalog Check #56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Model Catalog Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: {} | |
| jobs: | |
| check: | |
| name: Declared model ids resolve in the live catalog | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| - run: npm ci | |
| - name: Check declared model ids against /v1/models | |
| env: | |
| POE_API_KEY: ${{ secrets.POE_API_KEY }} | |
| run: npx tsx scripts/check-model-catalog.ts |