Update app.py
Browse files
app.py
CHANGED
@@ -1200,11 +1200,6 @@ def handsome_chat_completions():
|
|
1200 |
|
1201 |
return jsonify(formatted_response)
|
1202 |
|
1203 |
-
except requests.exceptions.RequestException as e:
|
1204 |
-
logging.error(f"请求转发异常: {e}")
|
1205 |
-
return jsonify({"error": str(e)}), 500
|
1206 |
-
|
1207 |
-
|
1208 |
if model_name in models["image"]:
|
1209 |
if isinstance(data.get("messages"), list):
|
1210 |
data = data.copy()
|
|
|
1200 |
|
1201 |
return jsonify(formatted_response)
|
1202 |
|
|
|
|
|
|
|
|
|
|
|
1203 |
if model_name in models["image"]:
|
1204 |
if isinstance(data.get("messages"), list):
|
1205 |
data = data.copy()
|