quentinrobot commited on
Commit
d3b14f9
·
1 Parent(s): 4094214

更新 app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -14,6 +14,7 @@ from lagent.llms import GPTAPI
14
  YOUR_TOKEN_HERE = os.getenv("token")
15
  if not YOUR_TOKEN_HERE:
16
  raise EnvironmentError("未找到环境变量 'token',请设置后再运行程序。")
 
17
  # Hook类,用于对消息添加前缀
18
  class PrefixedMessageHook(Hook):
19
  def __init__(self, prefix, senders=None):
 
14
  YOUR_TOKEN_HERE = os.getenv("token")
15
  if not YOUR_TOKEN_HERE:
16
  raise EnvironmentError("未找到环境变量 'token',请设置后再运行程序。")
17
+
18
  # Hook类,用于对消息添加前缀
19
  class PrefixedMessageHook(Hook):
20
  def __init__(self, prefix, senders=None):