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 50c0158
Browse filesBrowse the repository at this point in the historyBrowse files
fix(catalog): log provider discovery failures once per signature (#395)
Anthropic-adapter providers whose baseUrl lacks /v1/models (e.g. Azure AI
Foundry) return HTTP 404 forever; the 30s discovery cooldown re-probed and
re-logged the same warning every ~30s, flooding the log. Add
shouldLogDiscoveryFailure() (log-once-per-signature): a failure warns only
when its signature (reason + httpStatus) differs from the last observed
discovery status. The 30s re-probe cooldown and the observable discovery
status (/api/providers) are unchanged; a first occurrence, a changed
status, a recovery, or a cache clear all log again. Gates all five
failure-branch warnings. Regression: tests/provider-discovery-log-suppression.test.ts.
`[opencodex] Provider model discovery for "${name}" was blocked by destination policy: ${destinationError} [urlClass=${urlClass}, fallback=${fallback}].`,
`[opencodex] Provider model discovery for "${name}" was blocked by destination policy: ${destinationError} [urlClass=${urlClass}, fallback=${fallback}].`,
`[opencodex] Provider model discovery for "${name}" returned malformed 2xx data [status=${res.status}, contentType=${contentType}, urlClass=${urlClass}, fallback=${fallback}].`,
`[opencodex] Provider model discovery for "${name}" returned malformed 2xx data [status=${res.status}, contentType=${contentType}, urlClass=${urlClass}, fallback=${fallback}].`,
0 commit comments