We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31956da commit 2503a55Copy full SHA for 2503a55
ads/llm/serialize.py
@@ -26,8 +26,9 @@
26
27
# This is a temp solution for supporting custom LLM in legacy load_chain
28
__lc_llm_dict = llms.get_type_to_cls_dict()
29
-for llm_class in [GenerativeAI, ModelDeploymentTGI, ModelDeploymentVLLM]:
30
- __lc_llm_dict[llm_class.__name__] = lambda: llm_class
+__lc_llm_dict[GenerativeAI.__name__] = lambda: GenerativeAI
+__lc_llm_dict[ModelDeploymentTGI.__name__] = lambda: ModelDeploymentTGI
31
+__lc_llm_dict[ModelDeploymentVLLM.__name__] = lambda: ModelDeploymentVLLM
32
33
34
def __new_type_to_cls_dict():
0 commit comments