跳到正文
TakoAPI
返回技能列表

dynamic-model-selector

由 mpelissari 提供

Coding Agents & IDEs
846下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Dynamically select the best AI model for a task based on complexity, cost, and availability in GitHub Copilot.

描述

该技能的功能

Analyzes user queries to recommend the optimal AI model from GitHub Copilot's available options. Routes tasks based on complexity, cost sensitivity, and task type such as code generation or multi-step reasoning.

Instead of manually picking a model each time, the classification script matches task complexity to the right model, avoiding overpaying for simple queries or underserving complex ones.

何时使用

  • Routing simple chat queries to free models to avoid unnecessary cost
  • Selecting gpt-4o for complex analysis tasks automatically
  • Picking code-optimized models for code generation requests
  • Comparing model options before starting a long reasoning task
  • Keeping costs low on high-volume automated workflows

示例工作流

输入

User asks: 'Explain the difference between TCP and UDP'

智能体
  1. 1

    Pass the query to classify_task.py

  2. 2

    Script evaluates complexity, task type, and cost constraints

  3. 3

    Classification returns medium complexity, general explanation

  4. 4

    Selector recommends gpt-4o based on models.md criteria

  5. 5

    User proceeds with the recommended model in GitHub Copilot

输出

Model recommendation: gpt-4o for a medium-complexity explanation task

前置要求

  • GitHub Copilot subscription or access

安装

clawhub install mpelissari/dynamic-model-selector

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接