Coverage for src / lilbee / core / config / keys.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-05-15 20:55 +0000

1"""Names of the per-provider API key fields on the Config model. 

2 

3Anything that wants to react to provider availability (e.g. the catalog 

4and model picker refreshing their API-model rows after a key is added) 

5keys off this set so the list does not drift from the canonical Config 

6declaration. 

7 

8Layering note: ``core`` cannot import from ``providers``; that is why 

9the provider-specific entries are listed here rather than derived from 

10``providers.sdk_backend.API_KEY_FIELDS``. Keep both in sync when adding 

11a new provider. 

12""" 

13 

14from __future__ import annotations 

15 

16PROVIDER_API_KEYS: frozenset[str] = frozenset( 

17 { 

18 "llm_api_key", 

19 "openrouter_api_key", 

20 "gemini_api_key", 

21 "anthropic_api_key", 

22 "openai_api_key", 

23 "mistral_api_key", 

24 "deepseek_api_key", 

25 } 

26)