nanova commited on
Commit
e308ec0
·
1 Parent(s): 365ab23

chore: update log

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -15,8 +15,8 @@ API_TOKEN = os.getenv("API_TOKEN")
15
  if not API_URL or not API_TOKEN:
16
  raise ValueError("请确保设置了环境变量 API_URL 和 API_TOKEN")
17
 
18
- print(f"[INFO] 服务启动配置:")
19
- print(f"[INFO] API_URL: {API_URL}")
20
  print(f"[INFO] API_TOKEN: {API_TOKEN[:10]}...{API_TOKEN[-10:]}") # 只显示token的前10位和后10位
21
 
22
  """
@@ -56,11 +56,11 @@ def respond(
56
  "min_p": 0.1
57
  }
58
 
59
- print(f"[INFO] 正在处理用户请求...")
60
- print(f"[INFO] 系统消息: {system_message}")
61
- print(f"[INFO] 用户消息: {message}")
62
- print(f"[INFO] 模型参数: temperature={temperature}, top_p={top_p}")
63
- print(f"[INFO] 请求数据: {data}")
64
 
65
  response = ""
66
 
 
15
  if not API_URL or not API_TOKEN:
16
  raise ValueError("请确保设置了环境变量 API_URL 和 API_TOKEN")
17
 
18
+ print(f"[INFO] starting:")
19
+ print(f"[INFO] API_URL: {API_URL[:6]}...{API_URL[-13:]}")
20
  print(f"[INFO] API_TOKEN: {API_TOKEN[:10]}...{API_TOKEN[-10:]}") # 只显示token的前10位和后10位
21
 
22
  """
 
56
  "min_p": 0.1
57
  }
58
 
59
+ print(f"[INFO] process user msg...")
60
+ print(f"[INFO] sysMsg: {system_message}")
61
+ print(f"[INFO] userMsg: {message}")
62
+ print(f"[INFO] modelParam: temperature={temperature}, top_p={top_p}")
63
+ print(f"[INFO] reqData: {data}")
64
 
65
  response = ""
66