Spaces:
Sleeping
Sleeping
chore: add log
Browse files
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:
|