From 4657877b10a8b57bda04068621415f3ccbd0776e Mon Sep 17 00:00:00 2001 From: Justin Uberti Date: Sun, 5 May 2024 15:30:28 -0700 Subject: [PATCH] Add image benchmark action (#21) --- .github/workflows/bench.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 433bec7..31f3606 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -13,8 +13,10 @@ jobs: steps: - name: Send Benchmark Requests run: | - regions=("sea" "iad" "cdg") + regions=("sea" "iad" "cdg") + media=("text" "image") for region in "${regions[@]}" + for media in "${media[@]}" do - curl -f -X POST 'https://ai-benchmarks.fly.dev/bench?mode=text&max_tokens=20&spread=30&store' -H "fly-prefer-region: $region" + curl -f -X POST "https://ai-benchmarks.fly.dev/bench?mode=$media&max_tokens=20&spread=30&store" -H "fly-prefer-region: $region" done