You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0852093
Browse filesBrowse the repository at this point in the historyBrowse files
fix(zoo-gateway): stop inventing UI cost from default model prices (Zoo-Code-Org#1339)
* fix(zoo-gateway): stop inventing UI cost from default model prices
Stale in-memory model maps and defaultModelInfo $/token fallback made the panel overstate spend vs gateway billing after new catalog models (e.g. Alibaba promo).
* fix(zoo-gateway): negative-cache missing models and cover unset usage.cost
Avoid refetching the catalog on every request when an id is still absent after a fetch; retry after a short TTL. Add coverage for usage chunks that omit cost.
* fix(zoo-gateway): negative-cache empty catalog misses too
An empty getModels() result still records a missing-id attempt; the retry guard no longer requires a non-empty models map.
* fix(zoo-gateway): refresh catalog before negative-caching a miss
getModels can return a stale shared catalog for non-auth-scoped providers.
Force refreshModels when the selected id is still missing so newly listed
models are not blocked for the five-minute negative-cache window.
* fix(zoo-gateway): include refreshModels in RouterProvider test mocks
fetchModel now calls refreshModels on catalog misses; provider specs that
mocked only getModels broke under CI.
(cherry picked from commit 6ad8a6e)
0 commit comments