Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def forward_to_target(subpath):
|
|
24 |
return jsonify({"error": "Unauthorized"}), 401
|
25 |
|
26 |
api_key = auth_header.split(" ")[1]
|
27 |
-
target_url = f"https://{subpath.split('/')[
|
28 |
|
29 |
model = data['model']
|
30 |
messages = data['messages']
|
|
|
24 |
return jsonify({"error": "Unauthorized"}), 401
|
25 |
|
26 |
api_key = auth_header.split(" ")[1]
|
27 |
+
target_url = f"https://{subpath.split('/')[1]}"
|
28 |
|
29 |
model = data['model']
|
30 |
messages = data['messages']
|