mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 18:36:22 +02:00
add comments
This commit is contained in:
parent
a4c7156d57
commit
ea64e6ad47
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,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