mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 05:42:37 +02:00
Merge branch 'geekan:dev' into dev
This commit is contained in:
commit
9efb9e6e80
50 changed files with 549 additions and 635 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue