extra='ignore'

This commit is contained in:
geekan 2024-01-10 17:17:27 +08:00
parent 4003f124bb
commit 9a95bcd6e9
3 changed files with 3 additions and 3 deletions

View file

@ -165,7 +165,7 @@ class ContextMixin(BaseModel):
@property
def llm(self) -> BaseLLM:
"""Role llm: role llm > context llm"""
# logger.info(f"class:{self.__class__.__name__}, llm: {self._llm}, llm_config: {self._llm_config}")
print(f"class:{self.__class__.__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()