File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1211,8 +1211,6 @@ def query(
12111211 max_recursive_calls = 99 ,
12121212 recursive_call_info : Optional [Dict [str , any ]] = None ,
12131213 ** kwargs ,
1214-
1215-
12161214 ) -> Dict [str , any ]:
12171215 llmalias = self .config ["alias" ]
12181216 return self .llmsobject .query (
@@ -1230,6 +1228,27 @@ def query(
12301228 recursive_call_info = recursive_call_info ,
12311229 ** kwargs )
12321230
1231+ def embeddings (
1232+ self ,
1233+ llmalias : str ,
1234+ texts : List [str ],
1235+ return_cost : bool = True ,
1236+ return_response : bool = False ,
1237+ debug = False ,
1238+ litellm_debug = None ,
1239+ ** kwargs ,
1240+ ) -> Dict [str , Any ]:
1241+ llmalias = self .config ["alias" ]
1242+ return self .llmsobject .embeddings (
1243+ llmalias ,
1244+ texts = texts ,
1245+ return_cost = return_cost ,
1246+ return_response = return_response ,
1247+ debug = debug ,
1248+ litellm_debug = litellm_debug ,
1249+ ** kwargs ,
1250+ )
1251+
12331252 def __str__ (self ):
12341253 return f"LLM({ self .config ['alias' ]} )"
12351254
You can’t perform that action at this time.
0 commit comments