Add descriptions for new models from the HuggingFace router to chat-ui configuration. Use when new models are released on the router and need descriptions added
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-add-model-descriptions-ee901bf2ab8c ,按照其中的说明把「add-model-descriptions」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Add descriptions for new models available in the HuggingFace router to chat-ui's prod.yaml and dev.yaml.
Fetch models from router
WebFetch https://router.huggingface.co/v1/models
Extract all model IDs from the response.
Read current configuration
chart/env/prod.yamlMODELS JSON array in envVarsIdentify missing models Compare router models with prod.yaml. Missing = in router but not in prod.yaml.
Research each missing model For each missing model, search the web for its specifications:
Write descriptions Match existing style:
Examples:
"Flagship GLM MoE for coding, reasoning, and agentic tool use.""MoE agent model with multilingual coding and fast outputs.""Vision-language Qwen for documents, GUI agents, and visual reasoning.""Mobile agent for multilingual Android device automation."Update both files Add new models at the TOP of the MODELS array in:
chart/env/prod.yamlchart/env/dev.yamlFormat:
{ "id": "org/model-name", "description": "Description here." }
Commit changes
git add chart/env/prod.yaml chart/env/dev.yaml
git commit -m "feat: add descriptions for N new models from router"