update-ai-models

rot1024 的头像作者 rot1024

搜索网络上来自Anthropic、OpenAI和Google的最新AI模型,然后用新模型ID更新src/models.ts。当用户要求更新或添加AI模型时使用。

📖 中文导读:搜索网络上来自Anthropic、OpenAI和Google的最新AI模型,然后用新模型ID更新src/models.ts。当用户要求更新或添加AI模型时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: update-ai-models description: Search the web for the latest AI models from Anthropic, OpenAI, and Google, then update src/models.ts with new model IDs. Use when user asks to update or add AI models.

Update AI Models

Search for the latest AI models and update the model list in this project.

Instructions

  1. Search for latest models from each provider:

    • Anthropic Claude models (claude-opus, claude-sonnet, claude-haiku)
    • OpenAI models (GPT series, o-series reasoning models)
    • Google Gemini models
  2. Get exact model IDs from official documentation:

  3. Update src/models.ts:

    • Add new models with correct model ID strings
    • Keep claude-4.5-sonnet as the first entry (default model)
    • Order models by recency within each provider section
    • Remove deprecated models
  4. Run verification:

    npm run typecheck
    npm run build
    npm test
    

Model Entry Format

'model-key': {
  provider: 'anthropic' | 'openai' | 'google',
  name: 'Display Name',
  model: 'exact-api-model-id',
},

Examples

Anthropic Claude:

'claude-4.5-sonnet': {
  provider: 'anthropic',
  name: 'Claude 4.5 Sonnet',
  model: 'claude-sonnet-4-5-20250929',
},

OpenAI:

'gpt-5': {
  provider: 'openai',
  name: 'GPT-5',
  model: 'gpt-5',
},
'o3': {
  provider: 'openai',
  name: 'o3',
  model: 'o3',
},

Google Gemini:

'gemini-2.5-pro': {
  provider: 'google',
  name: 'Gemini 2.5 Pro',
  model: 'gemini-2.5-pro',
},

Notes

  • Default model should be cost-effective (Sonnet tier, not Opus)
  • Update tests in src/models.test.ts if DEFAULT_AI_MODEL changes
  • Include sources in your response after updating