refactor: unify docstrings, add /resume command, simplify error msg
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user