Skip to content

Initial release: pricing data for 30+ LLM APIs #1

Initial release: pricing data for 30+ LLM APIs

Initial release: pricing data for 30+ LLM APIs #1

Workflow file for this run

name: Validate JSON
on:
pull_request:
paths:
- '*.json'
push:
branches:
- main
paths:
- '*.json'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate pricing.json
run: python3 -c "import json; json.load(open('pricing.json')); print('pricing.json is valid')"
- name: Validate pricing-by-provider.json
run: python3 -c "import json; json.load(open('pricing-by-provider.json')); print('pricing-by-provider.json is valid')"
- name: Check model count
run: python3 -c "
import json

Check failure on line 27 in .github/workflows/validate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/validate.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
data = json.load(open('pricing.json'))
print(f'{len(data)} models found')
assert len(data) >= 30, f'Expected at least 30 models, got {len(data)}'
"