Merge branch 'geekan:dev' into dev

This commit is contained in:
garylin2099 2024-01-03 00:21:34 +08:00 committed by GitHub
commit 9efb9e6e80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 549 additions and 635 deletions

View file

@ -94,6 +94,10 @@ class Context:
@property
def llm_api(self):
# 1. 初始化llm带有缓存结果
# 2. 如果缓存query那么直接返回缓存结果
# 3. 如果没有缓存query那么调用llm_api返回结果
# 4. 如果有缓存query那么更新缓存结果
return self._llm_api