extra='ignore'

This commit is contained in:
geekan 2024-01-10 17:31:55 +08:00 committed by 莘权 马
parent 9559d83d10
commit 0157a1d8a1

View file

@ -165,7 +165,7 @@ class ContextMixin(BaseModel):
@property
def llm(self) -> BaseLLM:
"""Role llm: role llm > context llm"""
print(f"class:{self.__class__.__name__}, llm: {self._llm}, llm_config: {self._llm_config}")
# print(f"class:{self.__class__.__name__}({self.name}), llm: {self._llm}, llm_config: {self._llm_config}")
if self._llm_config and not self._llm:
self._llm = self.context.llm(self._llm_config.name, self._llm_config.provider)
return self._llm or self.context.llm()