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
| #!/usr/bin/env -S deno run --allow-net | |
| /** | |
| * Fetches all models from OpenRouter API and filters for free ones | |
| * Run with: deno run --allow-net openrouter-free-models.js | |
| */ | |
| async function getFreeOpenRouterModels() { | |
| try { | |
| console.log('Fetching models from OpenRouter...'); |