Apex123 commited on
Commit
3819f95
·
verified ·
1 Parent(s): 25bf773

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +4 -1
server.py CHANGED
@@ -11,8 +11,11 @@ def hello():
11
 
12
  @app.route('/v1/chat/completions', methods=['POST'])
13
  def chat():
 
 
14
  data = request.get_json()
15
-
 
16
  # 取得使用者輸入
17
  messages = data.get("messages", [])
18
  user_message = ""
 
11
 
12
  @app.route('/v1/chat/completions', methods=['POST'])
13
  def chat():
14
+ print("💬 收到請求")
15
+
16
  data = request.get_json()
17
+ print("資料內容:", data)
18
+
19
  # 取得使用者輸入
20
  messages = data.get("messages", [])
21
  user_message = ""