-
Notifications
You must be signed in to change notification settings - Fork 0
Add OpenRouter connection tester with GitHub Action #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #2
Implements model availability testing for OpenRouter API similar to existing PiAPI tests. Both scripts test a curated list of popular models including frontier reasoning models, specialized coding models, multimodal vision models, and efficient open models. Features: - Parallel testing of multiple models - Detailed status reporting with response times - Markdown table output for easy reading - Model validation to ensure correct model responses 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Implements automated CI/CD testing for both PiAPI and OpenRouter models: - test-openrouter.yml: Tests OpenRouter model availability - test-piapi.yml: Tests PiAPI model availability Features: - Scheduled runs every 6 hours for continuous monitoring - Manual workflow dispatch with language selection (JavaScript/Python/both) - Artifact upload for test results (30-day retention) - Job summary with recent results - Failure detection and warnings Both workflows support testing in JavaScript and Python with parallel job execution. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Enhances README with detailed information about model testing capabilities: - Added feature overview highlighting automated testing and dual provider support - Documented both PiAPI and OpenRouter testing scripts - Included clear usage instructions for both JavaScript and Python - Added API key acquisition instructions for both providers - Documented GitHub Actions workflows and their capabilities - Improved overall structure and navigation The README now serves as a complete guide for using the testing tools. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 648375a.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
🔄 Auto-restart 1/3Detected uncommitted changes from previous run. Starting new session to review and commit them. Uncommitted files: Auto-restart will stop after changes are committed or after 2 more iterations. Please wait until working session will end and give your feedback. |
Clean up .gitignore to prevent Python cache files (__pycache__, *.pyc, etc.) from being tracked in the repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
This PR implements OpenRouter model availability testing similar to the existing PiAPI tests, adding comprehensive monitoring capabilities for the OpenRouter API gateway.
Changes Made
1. OpenRouter Testing Scripts
test-openrouter-models.mjs- JavaScript implementation using Node.jstest-openrouter-models.py- Python implementation using asyncio/aiohttpBoth scripts test a curated list of 30+ popular OpenRouter models including:
2. GitHub Actions Workflows
.github/workflows/test-openrouter.yml- Automated OpenRouter model testing.github/workflows/test-piapi.yml- Automated PiAPI model testing (bonus!)Features:
3. Documentation
Testing Approach
The OpenRouter scripts follow the same proven pattern as the PiAPI tests:
API Compatibility
OpenRouter uses OpenAI-compatible API endpoints at:
https://openrouter.ai/api/v1Setup Required
To enable the workflows, add the following repository secret:
OPENROUTER_API_KEY- OpenRouter API key from https://openrouter.ai/keysFor PiAPI workflow:
PIAPI_API_KEY- PiAPI API key from Telegram botManual Testing
Users can run the scripts locally:
Related Issue
Fixes #2
🤖 Generated with Claude Code