refactor: unify docstrings, add /resume command, simplify error msg

This commit is contained in:
Liang Jiaqing
2026-04-16 21:03:47 +08:00
parent e7e560715e
commit aa674655a8
3 changed files with 14 additions and 31 deletions

View File

@@ -20,7 +20,7 @@ st.set_page_config(page_title="Cowork", layout="wide")
def init():
agent = GeneraticAgent()
if agent.llmclient is None:
st.error("⚠️ 未配置任何可用的 LLM 接口,请mykey.py 中添加 sider_cookie 或 oai_apikey+oai_apibase 等信息后重启")
st.error("⚠️ 未配置任何可用的 LLM 接口,请设置mykey.py。")
st.stop()
else: threading.Thread(target=agent.run, daemon=True).start()
return agent