fix extra kwargs error: keyword_extraction.

add lazy_external_load to reduce external lib deps whenever it's not necessary for user.
This commit is contained in:
david
2024-12-09 15:35:35 +08:00
parent 97d1894077
commit 9717ad87fc
2 changed files with 26 additions and 8 deletions

View File

@@ -1074,6 +1074,8 @@ class MultiModel:
self, prompt, system_prompt=None, history_messages=[], **kwargs
) -> str:
kwargs.pop("model", None) # stop from overwriting the custom model name
kwargs.pop("keyword_extraction", None)
kwargs.pop("mode", None)
next_model = self._next_model()
args = dict(
prompt=prompt,