Update app.py
Browse files
app.py
CHANGED
@@ -307,7 +307,7 @@ def handsome_chat_completions():
|
|
307 |
return jsonify({"error": "Unauthorized"}), 401
|
308 |
|
309 |
data = request.get_json()
|
310 |
-
logging.
|
311 |
if not data or 'model' not in data:
|
312 |
return jsonify({"error": "Invalid request data"}), 400
|
313 |
if data['model'] not in models["text"] and data['model'] not in models["image"]:
|
|
|
307 |
return jsonify({"error": "Unauthorized"}), 401
|
308 |
|
309 |
data = request.get_json()
|
310 |
+
logging.info(f"Request data: {data}")
|
311 |
if not data or 'model' not in data:
|
312 |
return jsonify({"error": "Invalid request data"}), 400
|
313 |
if data['model'] not in models["text"] and data['model'] not in models["image"]:
|