Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

MyAISpeed GitHub Action

Test connection latency to major AI providers directly from your CI/CD pipeline.

Quick Start

- uses: myAIspeed/action@v1id: speed
- run: echo "Fastest: ${{ steps.speed.outputs.fastest-provider }} (${{ steps.speed.outputs.fastest-latency }}ms)"

Usage

- uses: myAIspeed/action@v1id: speedwith:
providers: 'all'# Comma-separated list or 'all'fail-threshold: '0'# Fail if any provider exceeds this ms (0 = never fail)json-output: 'false'# Log results as JSON

Inputs

InputDescriptionDefault
providersComma-separated list of provider slugs to test, or allall
fail-thresholdFail the step if any provider latency exceeds this value in ms. Set to 0 to never fail.0
json-outputSet to true to include JSON-formatted results in the log outputfalse

Outputs

OutputDescription
resultsJSON array of all test results
fastest-providerSlug of the fastest responding provider
fastest-latencyLatency of the fastest provider in milliseconds

Examples

Fail if latency exceeds 500ms

steps:
- uses: myAIspeed/action@v1id: speedwith:
fail-threshold: '500'

Save results as an artifact

steps:
- uses: myAIspeed/action@v1id: speedwith:
json-output: 'true'
- run: echo '${{ steps.speed.outputs.results }}' > latency-results.json
- uses: actions/upload-artifact@v4with:
name: ai-latency-resultspath: latency-results.json

Test specific providers

steps:
- uses: myAIspeed/action@v1id: speedwith:
providers: 'openai,anthropic,google'

About

Built by Reflect Memory, Inc. — measure and monitor AI provider performance from anywhere.

Visit myaispeed.com to learn more.

Releases

Packages

Contributors

Languages