Spaces:
Runtime error
Runtime error
Update modules/models/ChuanhuAgent.py
Browse files
modules/models/ChuanhuAgent.py
CHANGED
@@ -131,7 +131,7 @@ class ChuanhuAgent_Client(BaseLLMModel):
|
|
131 |
status = i18n("索引构建完成")
|
132 |
# Summarize the document
|
133 |
logging.info(i18n("生成内容总结中……"))
|
134 |
-
|
135 |
with get_openai_callback() as cb:
|
136 |
os.environ["OPENAI_API_KEY"] = self.api_key
|
137 |
from langchain.chains.summarize import load_summarize_chain
|
|
|
131 |
status = i18n("索引构建完成")
|
132 |
# Summarize the document
|
133 |
logging.info(i18n("生成内容总结中……"))
|
134 |
+
|
135 |
with get_openai_callback() as cb:
|
136 |
os.environ["OPENAI_API_KEY"] = self.api_key
|
137 |
from langchain.chains.summarize import load_summarize_chain
|