mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 06:46:02 +00:00
sync_new_models_from_space() skipped any model whose uuid already existed. LangBot Space reuses a model's uuid across renames/re-specs (e.g. the uuid that was claude-opus-4-6 later becomes claude-opus-4-7), so renamed models never propagated locally — the stale local name was also sent to the models gateway, causing model_not_found at inference. Now upsert: create new uuids, and for existing models owned by the Space provider, update name/abilities/ranking to track Space (models from other providers are left untouched). Logs added/updated counts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>