Coverage for src / lilbee / providers / local_servers / __init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-06-28 01:01 +0000

1"""Local OpenAI-compatible model servers (Ollama, LM Studio). 

2 

3One :class:`LocalServerSpec` per server (``ollama``, ``lm_studio``) describes 

4its routing key, litellm wire prefix, default base URL, identifying URL 

5substrings, model source, and which catalog operations it supports. Imports 

6stay light for the routing layer; the HTTP behaviour (discovery, listing) 

7lives in the modelhub layer, dispatched off the spec. 

8""" 

9 

10from lilbee.providers.local_servers.lm_studio import LM_STUDIO 

11from lilbee.providers.local_servers.ollama import OLLAMA 

12from lilbee.providers.local_servers.registry import ( 

13 LOCAL_SERVER_KEYS, 

14 LOCAL_SERVERS, 

15 canonical_local_ref, 

16 detect_local_server, 

17 local_server_for_key, 

18 local_server_for_label, 

19 openai_models_url, 

20) 

21from lilbee.providers.local_servers.spec import LocalServerSpec 

22 

23__all__ = [ 

24 "LM_STUDIO", 

25 "LOCAL_SERVERS", 

26 "LOCAL_SERVER_KEYS", 

27 "OLLAMA", 

28 "LocalServerSpec", 

29 "canonical_local_ref", 

30 "detect_local_server", 

31 "local_server_for_key", 

32 "local_server_for_label", 

33 "openai_models_url", 

34]