Skip to content

Commit de4f51b

Browse files
refactoring
1 parent 89e05b9 commit de4f51b

21 files changed

Lines changed: 4040 additions & 373 deletions

code2logic/llm/__init__.py

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
11
"""LLM client integrations.
22
3-
Re-exports from parent package for backward compatibility.
3+
Re-exports from lolm package for unified LLM management.
4+
Backward compatible with existing code2logic imports.
45
"""
5-
from ..llm_clients import (
6-
BaseLLMClient, OpenRouterClient, OllamaLocalClient,
7-
LiteLLMClient, get_client
6+
7+
# Import from lolm package (shared LLM infrastructure)
8+
from lolm import (
9+
BaseLLMClient,
10+
OpenRouterClient,
11+
OllamaClient as OllamaLocalClient, # Alias for backward compatibility
12+
LiteLLMClient,
13+
get_client,
14+
LLMManager,
15+
LLMConfig,
16+
RECOMMENDED_MODELS,
17+
DEFAULT_MODELS,
818
)
19+
920
from ..intent import EnhancedIntentGenerator
1021

1122
__all__ = [
12-
'BaseLLMClient', 'OpenRouterClient', 'OllamaLocalClient',
13-
'LiteLLMClient', 'get_client',
23+
# Core clients (from lolm)
24+
'BaseLLMClient',
25+
'OpenRouterClient',
26+
'OllamaLocalClient',
27+
'LiteLLMClient',
28+
'get_client',
29+
# Manager
30+
'LLMManager',
31+
'LLMConfig',
32+
# Constants
33+
'RECOMMENDED_MODELS',
34+
'DEFAULT_MODELS',
35+
# Intent
1436
'EnhancedIntentGenerator',
1537
]

0 commit comments

Comments
 (0)