Initial release: pricing data for 30+ LLM APIs #1
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: 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 | ||
| 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)}' | ||
| " | ||