sync-models
Skill11k starsChanged 4 months agoApache-2.0View on GitHub
Sync chat-ui's model config with the HuggingFace router — add descriptions for new models, flag reasoning-capable ones, enable artifacts for models with 32B+ parameters, and prune deprecated models the router no longer serves. Use when models are released or removed on the router and prod.yaml/dev.yaml need syncing. Triggers on requests like "add new model descriptions", "update models from router", "sync models", "remove deprecated models", "prune models no longer on the router", or when explicitly invoking /sync-models.
1 other project uses a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- huiruru/ecoguilttheir own version, first seen Apr 17, 2026
Who's talking about huggingface/chat-ui
- A Hacker News story“Chat-UI, the codebase of HuggingChat, is open sourced”Hacker News · May 11, 2023 · 141 points
- infiniflow/ragflow“[Feature Request]: SAML/OAUTH/OpenID connect integration for Authentication”GitHub · Nov 19, 2024 · 7 reactions
- h2oai/h2ogpt“Improve UI”GitHub · Jun 13, 2023 · 4 reactions
- @mongodb.activitypub.awakari.com.ap.brid.gy“huggingface/chat-ui Open source codebase powering the HuggingChat app Chat UI A chat interface for LLMs. It …”Bluesky · Oct 20, 2025 · 2 likes
- @github-trending.bsky.social“📦 huggingface / chat-ui ⭐ 9,290 (+25) 🗒 TypeScript Open source codebase powering the HuggingChat app”Bluesky · Oct 19, 2025 · 2 likes
The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 38
Talked about on GitHub, Bluesky and Hacker News (38 times).
On GitHub · 27
- Nov 19, 2024[Feature Request]: SAML/OAUTH/OpenID connect integration for Authentication — infiniflow/ragflow7 reactions · 1 comment
- Jun 13, 2023Improve UI — h2oai/h2ogpt4 reactions
- Jan 25, 2024HF chat-ui Prompt Template (DeepSeek Coder 6.7B) — deepseek-ai/DeepSeek-Coder2 reactions · 1 comment
- Jan 11, 2024Please add descriptions and features for each — JShollaj/awesome-llm-web-ui2 reactions
- Jun 20, 2023Servermode for working as endpoint for VSCode Addon "HF Code Autocomplete" — bigcode-project/starcoder.cpp2 reactions · 2 comments
22 more on GitHub
- Jan 24, 2024Bug in Mistral prompt template — zylon-ai/private-gpt1 reaction · 2 comments
- Dec 1, 2023[FEATURE_REQUEST] Web search craft query option — SillyTavern/SillyTavern1 reaction · 18 comments
- Nov 25, 2023Add Large language models frontends ? — sindresorhus/awesome1 reaction · 2 comments
- Oct 6, 2026Messages get permanently stuck / fail to send — forpublicai/chat.publicai.co0 reactions · 4 comments
- Sep 28, 2026agent-skills.github.huggingface.chat-ui: init at 0.10.0 — sudosubin/agents.nix0 reactions
- Sep 10, 2026Add resource group billing to Jobs and Sandboxes — huggingface/hf-mcp-server0 reactions · 1 comment
- Jun 6, 2026[Add] HuggingChat (huggingface/chat-ui) — PyTorchKR/landscape0 reactions
- Oct 18, 2025HuggingChat Omni Support 🤗 — vllm-project/semantic-router0 reactions · 6 comments
- Sep 14, 2025Assess Alternatives to FastOpp — Oppkey/fastopp0 reactions · 2 comments
- Jul 10, 2025💡 [REQUEST] - Add Chat UI Channel Extension with Thread Support and Authentication — hexabot-ai/Hexabot0 reactions · 1 comment
- Feb 5, 2025Fix text composition — huggingface/transformers.js-examples0 reactions
- Jan 26, 2025[Feature]: Openrouter reasoning field and include_reasoning key — CherryHQ/cherry-studio0 reactions · 5 comments
- Jan 14, 2025Compose: Fix .env.local definition — morganhein/sponge0 reactions · 1 comment
- Jan 2, 2025Create docker-compose.yml project for [HuggingChat] — Websoft9/docker-library0 reactions
- Nov 19, 2024[Question]: How to Embed Agent or Chat on Website — infiniflow/ragflow0 reactions · 7 comments
- Nov 4, 2024Proposal to add production-level UI tools — EthicalML/awesome-production-machine-learning0 reactions · 2 comments
- Sep 4, 2024Fixes 4145: Add support for huggingface models — gmarcostam/neo4j-apoc-procedures0 reactions
- Jul 1, 2024Biobricks chat MVP — biobricks-ai/biobricks-agent0 reactions · 4 comments
- Apr 3, 2024voir pour intégrer d'autres interface chat — scenaristeur/igora0 reactions
- Nov 12, 2023Build GPT-like chat interface to Pyserini/Anserini — castorini/ura-projects0 reactions · 5 comments
- Oct 5, 2023Chat-UI with RAG websearch from huggingface. — irthomasthomas/undecidability0 reactions
- May 23, 2023HF chat UI — hltcoe/sandle0 reactions
On Bluesky · 9
- Oct 20, 2025huggingface/chat-ui Open source codebase powering the HuggingChat app Chat UI A chat interface for LLMs. It is a SvelteKit app and it… — @mongodb.activitypub.awakari.com.ap.brid.gy2 likes and reposts
- Oct 19, 2025📦 huggingface / chat-ui ⭐ 9,290 (+25) 🗒 TypeScript Open source codebase powering the HuggingChat app — @github-trending.bsky.social2 likes and reposts
- Feb 6, 2024📦 huggingface / chat-ui ⭐ 5,005 (+34) 🗒 TypeScript Open source codebase powering the HuggingChat app — @github-trending.bsky.social2 likes and reposts
- Feb 5, 2024📦 huggingface / chat-ui ⭐ 4,977 (+37) 🗒 TypeScript Open source codebase powering the HuggingChat app — @github-trending-js.bsky.social2 likes and reposts
- Oct 20, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 huggingface / chat-ui ⭐ 9,510 (+224) 🗒 TypeScript Open source codebase powering the HuggingChat app — @github-trending-js.bsky.social1 likes and repost
4 more on Bluesky
- Sep 5, 2025https://github.com/huggingface/chat-ui — @tom-doerr.bsky.social1 likes and repost
- Apr 30, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 huggingface / chat-ui ⭐ 6,208 (+129) 🗒 TypeScript Open source codebase powering the HuggingChat app — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Sep 29, 2026Does the huggingface/chat-ui repository really support chatting without signing in? — @andysmith.ai0 likes and reposts · 1 reply
- Nov 24, 2023I'm using this locally right now with my hf token. I subscribed to Pro because $9/month to support open source models is a steal. Oh and… — @phytomech.com0 likes and reposts · 1 reply
On Hacker News · 2
- May 11, 2023Chat-UI, the codebase of HuggingChat, is open sourced141 points · 30 comments
- Sep 8, 2024A chat interface using open source models, e.g. OpenAssistant or Llama2 points
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- huiruru/ecoguilt★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Read chart/env/prod.yaml (and chart/env/dev.yaml — the two share the same model set)
- Distinctive: line 93
Verify each candidate via provider docs: before flagging:
- Distinctive: line 104
sambanova: search "sambanova reasoning_effort"
- Distinctive: line 108
If none of the live providers document reasoning support for the model, don't flag it — even if the name pattern-matches.
- Very specific: line 113
Use the total parameter count, not active parameters.
- Distinctive: line 123
No articles ("a", "the") unless necessary
- Distinctive: line 134
Add new models at the TOP of the MODELS array in:
- Very specific: line 163
After editing, re-parse the MODELS block in each file as JSON to confirm it's still valid and that no deprecated id remains (reuse the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sync Models
Add descriptions for new models available in the HuggingFace router to chat-ui's prod.yaml and dev.yaml. Also flag models that support the OpenAI-compatible reasoning_effort parameter so chat-ui shows the thinking-effort selector for them, and enable artifacts for models with 32B or more total parameters. Finally, prune deprecated models — entries in the config whose ids the router no longer returns.
The comparison runs in two directions:
- Missing = in the router but not in the config → add them (steps 4–8).
- Deprecated = in the config but no longer in the router → remove them (step 9).
Both directions share the same source of truth: whatever https://router.huggingface.co/v1/models returns right now.
Workflow
Fetch models from router
WebFetch https://router.huggingface.co/v1/modelsExtract all model IDs from the response.
Read current configuration
- Read
chart/env/prod.yaml(andchart/env/dev.yaml— the two share the same model set) - Extract model IDs from the
MODELSJSON array inenvVars
- Read
Identify missing and deprecated models Compare the router list against the config in both directions:
- Missing = in router but not in the config → candidates to add (continue to step 4).
- Deprecated = in the config but not in the router → candidates to remove (jump to step 9).
Compute both sets with a script so the diff is exact rather than eyeballed — the list is long and near-duplicate ids (
GLM-4.7vsGLM-4.7-FP8,-Instructvs-Thinking) are easy to miss:python3 - <<'EOF' import json, re, subprocess raw = subprocess.check_output(["curl","-sS","https://router.huggingface.co/v1/models"]).decode() router = {m["id"] for m in json.loads(raw)["data"]} txt = open("chart/env/prod.yaml").read() block = re.search(r"MODELS:\s*>\s*\n(.*?)\n\S", txt, re.S).group(1) ids = [e["id"] for e in json.loads(block)] keep = {"omni"} # never treat the router alias (PUBLIC_LLM_ROUTER_ALIAS_ID) as deprecated print("MISSING (add): ", sorted(router - set(ids))) print("DEPRECATED (rm): ", [i for i in ids if i not in router and i not in keep]) EOFOnly operate on the missing set for the add/research steps (4–8). Never edit, re-flag, or re-describe entries that already exist in
prod.yaml/dev.yaml— even if you think their reasoning capability or description could be improved. Existing entries are intentionally curated and may have been hand-tuned for known quirks. Out of scope unless the user explicitly asks for a re-audit.Exclude the router alias from the deprecated set. The
omnientry (whateverPUBLIC_LLM_ROUTER_ALIAS_IDis set to) is a synthetic alias, not a router model, so it never appears in/v1/models. Never remove it. The same goes for any other intentionally-synthetic id that isn't meant to come from the router.Research each missing model For each missing model, search the web for its specifications:
- Model architecture (dense, MoE, parameters)
- Key capabilities (coding, reasoning, vision, multilingual, etc.)
- Target use cases
- Whether it's a reasoning model (see step 5)
Decide if the model is reasoning-capable The
supportsReasoningflag controls TWO behaviors, and both must be appropriate before flagging:- chat-ui renders the thinking-effort dropdown and forwards
reasoning_effortto the router; - chat-ui echoes the model's prior reasoning back as
reasoning_contenton past assistant messages (cross-turn "preserved thinking" — seeprepareFiles.ts/endpointOai.ts).
A model qualifies for (1) if it accepts the OpenAI-style
reasoning_effort: low|medium|highparameter via the HF router and meaningfully changes its chain-of-thought depth in response. Whether that holds depends on both the model and the providers serving it — the router is a transparent proxy, so behavior comes from each provider's implementation. Don't decide from the name alone.For (2), check the vendor's preserved-thinking / multi-turn guidance, because it can point in either direction:
- Flag-strengthening: the vendor documents that prior
reasoning_contentmust or should be passed back in multi-turn or tool-calling flows. Known examples: Moonshotthinking.keep(Kimi K2.6+/K3), MiniMax "Interleaved Thinking" ("must preserve the model's thinking content completely"), DeepSeek V4 thinking mode (hard 400 ifreasoning_contentis missing on tool-call turns), Z.ai "Preserved Thinking" (clear_thinking: false), Qwen3.6preserve_thinking. - Flag-blocking: the vendor documents that historical thoughts must be STRIPPED across completed turns. Known example: the Gemma family — Google requires removing thoughts from previous turns ("historical model output must only include the final response") while preserving them only inside a single turn's tool loop, which chat-ui handles automatically without the flag. Do not flag such models even though they emit reasoning and may accept an effort knob — flagging would make chat-ui echo reasoning the vendor says to strip.
Vendor doc entry points for the preserved-thinking check: https://platform.kimi.ai/docs/guide/use-kimi-k2-thinking-model, https://platform.minimax.io/docs/guides/text-m3-function-call, https://api-docs.deepseek.com/guides/thinking_mode/, https://docs.z.ai/guides/capabilities/thinking-mode, https://ai.google.dev/gemma/docs/capabilities/thinking, plus the model card's own multi-turn/best-practices section (Qwen cards document what their chat template does with historical
<think>blocks).Heuristic shortlist (candidates worth verifying):
- Name contains
gpt-oss,-Thinking,-thinking,-Reasoning,-reasoning,QwQ,R1,MiniMax-M,Kimi-K2-Thinking,cogito- - Hybrid models with a thinking switch: DeepSeek V3.1+, GLM-4.5 / 4.6 / 4.7 / 5.x, Qwen3 thinking variants
- Model card mentions "thinking mode", "reasoning traces", "extended thinking", "test-time compute", or shows
<think>...</think>examples
Skip without further checking:
- Generic "good at reasoning" marketing copy — every modern LLM claims this. Only flag when reasoning is the mode of operation.
- Non-thinking siblings (
Qwen3-235B-A22B-Instruct-2507≠Qwen3-235B-A22B-Thinking-2507). - Translation / vision-only / guard / coder-only models with no documented thinking mode.
Verify each candidate via provider docs before flagging:
For each model on the heuristic shortlist, look up its
liveproviders in the/v1/modelspayload, then check those providers' chat-completions documentation forreasoning_effort,reasoning_content,enable_thinking, or athinkingparameter. If at least one live provider documents it for this model (or for the model family in general), flag it as reasoning-capable. The HF router will proxy the parameter to whichever provider it picks.Provider docs to consult (use WebFetch / WebSearch):
- fireworks-ai: https://docs.fireworks.ai/api-reference/post-chatcompletions
- groq: https://console.groq.com/docs/reasoning
- cerebras: https://inference-docs.cerebras.ai/capabilities/reasoning
- together: https://docs.together.ai/docs/gpt-oss
- novita: https://novita.ai/docs/guides/llm-interleaved-thinking
- sambanova: search "sambanova reasoning_effort"
- deepinfra: https://docs.deepinfra.com/chat/overview
- nscale, scaleway, ovhcloud, hyperbolic, zai-org, cohere, featherless-ai: search "
<provider>reasoning_effort" or check their model catalog pages
If none of the live providers document reasoning support for the model, don't flag it — even if the name pattern-matches. If documentation is ambiguous, lean toward not flagging and mention it in the commit so it can be revisited.
- chat-ui renders the thinking-effort dropdown and forwards
Decide if the model gets artifacts Enable artifacts for any new model with 32B or more total parameters by appending
"supportsArtifacts": trueto its entry. This makes chat-ui instruct the model to emit<artifact>blocks rendered in the side panel.- Use the total parameter count, not active parameters. A
35B-A3BMoE qualifies (35B total ≥ 32B) even though only 3B are active. - The count is usually in the model name (
Qwen3.6-27B,550B-A55B). When it isn't, use the parameter count found while researching the model in step 4. - This is independent of reasoning capability — a model can have both flags, either one, or neither.
- Models under 32B don't get the flag; users can still enable artifacts per-model via settings overrides.
- Use the total parameter count, not active parameters. A
Write descriptions Match existing style:
- 8-12 words
- Sentence fragments (no period needed)
- No articles ("a", "the") unless necessary
- Focus on: architecture, specialization, key capability
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."
Add new models to both files Add new models at the TOP of the MODELS array in:
chart/env/prod.yamlchart/env/dev.yaml
Base format:
{ "id": "org/model-name", "description": "Description here." }Append
"supportsReasoning": truefor reasoning-capable models (step 5) and"supportsArtifacts": truefor 32B+ models (step 6). A model can carry both:{ "id": "org/model-name", "description": "Description here.", "supportsReasoning": true, "supportsArtifacts": true }supportsReasoningmakes chat-ui render the Thinking-effort dropdown in the chat footer, forwardreasoning_effortto the router, AND echo the model's prior reasoning back asreasoning_contenton past assistant messages (preserved thinking). Models whose vendor requires stripping historical thoughts (Gemma family) must stay unflagged — see step 5.supportsArtifactsenables the artifacts side panel for the model.Remove deprecated models from both files Delete the full entry line for every id in the deprecated set (step 3) from both
chart/env/prod.yamlandchart/env/dev.yaml. Match on the exact"id"value so near-duplicate ids aren't removed by accident, and keep the removal symmetric — the two files must end with the same model set.Removing a deprecated entry is safe and low-risk:
MODELSis an overrides map, not the model list.src/lib/server/models.tsbuilds the catalog from the router's/v1/modelsresponse and only applies aMODELSentry when its id is present in that response (it maps over the router models and looks each up in the override map). An entry whose id the router no longer serves is a dead override — it never renders in the UI — so pruning it changes nothing at runtime; it just keeps the config honest and readable.After editing, re-parse the
MODELSblock in each file as JSON to confirm it's still valid and that no deprecated id remains (reuse the script from step 3 — the deprecated set should now be empty).Do not touch models that are merely referenced by env vars but still present in the router (e.g.
TASK_MODEL,LLM_ROUTER_TOOLS_MODEL,LLM_ROUTER_MULTIMODAL_MODEL). If a deprecated id is referenced by one of those env vars, stop and flag it to the user instead of silently removing it — that indicates a config that needs a replacement model, not just a pruned line.- Commit changes
In the commit message, mention how many models were added (and how many of those are reasoning-capable / get artifacts) and how many deprecated models were removed, so it's easy to review.
git add chart/env/prod.yaml chart/env/dev.yaml git commit -m "feat: sync models from router (+N added, M reasoning-capable, K artifacts, -D removed)"
Notes
- Prune-only runs are normal: the router may drop models without adding any. If the missing set is empty but the deprecated set isn't, skip steps 4–8 entirely and just do the removal (step 9) plus commit.
- Add vs. remove are judged per-id: the router routinely keeps a base model while dropping its FP8/variant sibling (or the reverse). Treat
GLM-4.7andGLM-4.7-FP8, or-Instructand-Thinking, as independent ids — presence of one says nothing about the other. Trust the script's diff, not the family name. - FP8 variants: describe as "FP8 [base model] for efficient inference with [key capability]". If the base model is reasoning-capable, the FP8 variant is too — flag both. Same for artifacts: quantization doesn't change the parameter count, so a 32B+ base means the FP8 variant gets
supportsArtifactstoo. - Vision models: mention "vision-language" and key visual tasks. A vision model can still be reasoning-capable (e.g.
Qwen3-VL-*-Thinking) — judge by the same rules. - Agent models: mention "agent" and automation capabilities.
- Regional models: mention language focus (e.g., "European multilingual", "Southeast Asian").
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

