We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ade8736 + 3445285 commit 64837ebCopy full SHA for 64837eb
optillm.py
@@ -56,6 +56,9 @@
56
@app.before_request
57
def check_api_key():
58
if server_config['api_key']:
59
+ if request.path == "/health":
60
+ return
61
+
62
auth_header = request.headers.get('Authorization')
63
if not auth_header or not auth_header.startswith('Bearer '):
64
return jsonify({"error": "Invalid Authorization header. Expected format: 'Authorization: Bearer YOUR_API_KEY'"}), 401
0 commit comments