File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,19 @@ class Config:
40
40
41
41
42
42
LITELLM_SETTINGS = LiteLLMSettings ()
43
- logger .info (f"{ LITELLM_SETTINGS } " )
44
- logger .log_object (LITELLM_SETTINGS .model_dump (), tag = "LITELLM_SETTINGS" )
45
43
ACC_COST = 0.0
46
44
47
45
48
46
class LiteLLMAPIBackend (APIBackend ):
49
47
"""LiteLLM implementation of APIBackend interface"""
50
48
49
+ _has_logged_settings : bool = False
50
+
51
51
def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
52
+ if not self .__class__ ._has_logged_settings :
53
+ logger .info (f"{ LITELLM_SETTINGS } " )
54
+ logger .log_object (LITELLM_SETTINGS .model_dump (), tag = "LITELLM_SETTINGS" )
55
+ self .__class__ ._has_logged_settings = True
52
56
super ().__init__ (* args , ** kwargs )
53
57
54
58
def _calculate_token_from_messages (self , messages : list [dict [str , Any ]]) -> int :
You can’t perform that action at this time.
0 commit comments