[object Object]

← back to Exo

prioritize official model cards over custom model cards

5cbd6377a2120d70d6e78d29916f83c84afa7190 · 2026-02-18 12:48:42 +0000 · Evan

our old model card search path would override official model cards with
custom model cards - our packaged model cards should always be the
default here

Files touched

Diff

commit 5cbd6377a2120d70d6e78d29916f83c84afa7190
Author: Evan <evanev7@gmail.com>
Date:   Wed Feb 18 12:48:42 2026 +0000

    prioritize official model cards over custom model cards
    
    our old model card search path would override official model cards with
    custom model cards - our packaged model cards should always be the
    default here
---
 src/exo/shared/models/model_cards.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/exo/shared/models/model_cards.py b/src/exo/shared/models/model_cards.py
index f9079854..99d1ed2e 100644
--- a/src/exo/shared/models/model_cards.py
+++ b/src/exo/shared/models/model_cards.py
@@ -44,7 +44,8 @@ async def _refresh_card_cache():
         async for toml_file in path.rglob("*.toml"):
             try:
                 card = await ModelCard.load_from_path(toml_file)
-                _card_cache[card.model_id] = card
+                if card.model_id not in _card_cache:
+                    _card_cache[card.model_id] = card
             except (ValidationError, TOMLKitError):
                 pass
 

← 8f01523d remove dead code (#1496)  ·  back to Exo  ·  Add support for GLM 5 (#1526) 48b8f863 →