Skip to content

Update LLM Benchmark Data #21

Update LLM Benchmark Data

Update LLM Benchmark Data #21

Workflow file for this run

name: Update LLM Benchmark Data
on:
schedule:
# Runs at 08:00 UTC every day
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
make-http-request:
runs-on: ubuntu-latest
steps:
- name: Send Benchmark Requests
run: |
regions=("sea" "iad" "cdg")
for region in "${regions[@]}"
do
curl -X POST 'https://ai-benchmarks.fly.dev/bench?mode=text&max_tokens=20&store=true' -H "fly-prefer-region: $region"
done
generate-latest-data:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Get data and update file
run: |
OUTPUT="$(node ./utils/GenerateLatestData.js)"
echo "$OUTPUT" > ./website/public/data/latest.json
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ./website/public/data/latest.json
git commit -m "Update latest data"
git push
build-and-deploy-site:
uses: ./.github/workflows/astro.yml