nanova commited on
Commit
ad44100
·
1 Parent(s): da03023

chore: add log

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -42,6 +42,12 @@ def respond(
42
  "min_p": 0.1
43
  }
44
 
 
 
 
 
 
 
45
  response = ""
46
 
47
  with requests.post(API_URL, headers=headers, json=data, stream=True) as r:
 
42
  "min_p": 0.1
43
  }
44
 
45
+ print(f"[INFO] 正在处理用户请求...")
46
+ print(f"[INFO] 系统消息: {system_message}")
47
+ print(f"[INFO] 用户消息: {message}")
48
+ print(f"[INFO] 模型参数: temperature={temperature}, top_p={top_p}")
49
+ print(f"[INFO] 请求数据: {data}")
50
+
51
  response = ""
52
 
53
  with requests.post(API_URL, headers=headers, json=data, stream=True) as r: