mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
87eba86514
* ✨ feat(model-bank): backfill knowledgeCutoff for OpenAI/Claude/Llama/Phi families (batch 1) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * ✨ feat(model-bank): add family/generation fields with rule-derived data for chat models Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * ✨ feat(model-bank): add canonical knowledge-cutoff map with build-time backfill Adds MODEL_KNOWLEDGE_CUTOFFS (canonical id → YYYY-MM, all values verified against official provider docs) plus normalizeModelIdForCutoff, which reduces provider-specific spellings (openrouter/bedrock prefixes, dated snapshots, -thinking/-fast/-latest/-preview variants, claude dot-versions) to canonical ids. buildDefaultModelList backfills knowledgeCutoff from the map when a model card has no inline value, so all aggregator providers inherit cutoffs automatically; inline values always win. Covers Anthropic (incl. legacy 3.x), OpenAI, Google Gemini/Gemma, xAI Grok, Meta Llama, Amazon Nova, and Cohere. DeepSeek/Qwen/GLM/Kimi/MiniMax/Mistral publish no official cutoffs and are intentionally absent. Anthropic inline PoC entries migrate into the map (single source of truth). Cross-checked against the batch-1 inline backfill: 0 value mismatches. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * 🐛 fix(model-bank): correct Claude Sonnet 4.6 cutoff * ✅ test(model-bank): sync metadata expectations --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>