Communitygithub.com

ariobarin/which-llm

使用 Artificial Analysis 和 OpenRouter 資料,提供當前 LLM 選擇的技術:品質、價格、速度、上下文、別名及免費方案選項。每日更新。

which-llm 是什麼?

這是一個專為 AI 代理技能設計的工具,可查閱已嵌入的 Artificial Analysis 與 OpenRouter 快照資料,並在需求時手動更新。它解決了 LLM 模型知識可能過時的問題,讓開發者能基於最新的品質、價格、延遲、上下文長度等指標進行模型篩選與比較。支援的平台包括所有可執行 Python 命令的終端環境(如 Claude Code、Cursor、Codex 等),不依賴特定 IDE。其工作流程是先檢查快照狀態、必要時重新整理,再使用精確的子命令進行短清單產出、模型對比、取得 OpenRouter 端點別名或檢視個別模型詳情。費用欄位(如 idx-run$、in$/1m)需正確解釋以利成本估算。最後,應優先使用 openrouter_slug 進行生產部署,而 openrouter_free_slug 僅作為原型選項,因 :free 端點可能受限。

相容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add ariobarin/which-llm

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

which-llm 是做什麼的?

當模型知識可能過時時,請使用此技能。它會查閱已嵌入的 Artificial Analysis 與 OpenRouter 快照,並可依需求重新整理。

工作流程

  1. 從此目錄使用 python 執行命令。
  2. 如果需要最新資料,請執行 python query.py data status。若快照已過時,則執行 python query.py data refresh。
  3. 使用最精確的命令:
    • python query.py models [pattern] [filters] 產生短清單。
    • python query.py compare <model>... 進行並排比較。
    • python query.py slug <model> 取得 OpenRouter 端點名稱。
    • python query.py show <model> 在推薦特定模型前檢視詳細資料。
  4. 正確解釋費用欄位:
    • idx-run$ 為執行 AA 基準測試套件的估算成本。
    • idx-tok 為基準測試使用的總 token 數。
    • in$/1m 和 out$/1m 為每百萬 token 的 API 價格。
  5. 生產環境優先使用 openrouter_slug。僅在原型選項中提及 openrouter_free_slug,因為 :free 端點可能會有速率限制或提供不同服務。

快速範例

python query.py models --intel-min 50 --reasoning --sort cost --top 8
python query.py models --modality text,image --max-cost 500 --sort intel --top 8
python query.py models --no-reasoning --max-latency 6 --sort intel --top 8
python query.py models --context-min 256000 --sort cost --top 8
python query.py models --open-weights --sort intel --top 8
python query.py models --free --sort cost --top 20
python query.py compare claude-opus-4-7 gpt-5 gemini-3-1-pro
python query.py slug claude-opus-4-7

使用 python query.py models --help 查看所有篩選條件,包含 --json。

不適用於

  • AA 未追蹤的領域評估或私有基準測試。
  • AA 尚未索引的全新模型。
  • 非 OpenRouter 供應商的官方定價。請直接向該供應商驗證價格。

相關技能