mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-07-25 07:36:30 +00:00
* fix: make the provider connection test resilient to model retirement Two independent hardenings against the #970 class of breakage (a hard-coded Gemini test model getting shut down by Google, which made testing a valid key fail with a 404): - Use Google's floating alias gemini-flash-latest for the Google/Vertex test model instead of a dated id, so a retirement repoints it for us. - Reframe the provider connection test around what an error actually proves: only a rejected key (401), missing permissions (403), or an unreachable endpoint are failures. Anything the provider returns after authenticating - a rate limit, or a missing/retired/unsupported model - still proves the credentials work, so it reports success. Previously this relied on matching the literal phrase 'not found' + 'model', which a differently-worded retirement/deprecation error slipped past. Unifies the auth/network/rate-limit classification (previously duplicated and divergent between connection_tester and credentials_service) into shared helpers. The individual-model test keeps model-not-found as a failure, since there a specific registered model really is broken. Adds classification tests with realistic provider error strings. * docs: add CHANGELOG entry for connection-test resilience fix |
||
|---|---|---|
| .. | ||
| ai | ||
| database | ||
| domain | ||
| graphs | ||
| podcasts | ||
| utils | ||
| __init__.py | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| config.py | ||
| exceptions.py | ||