diff --git a/smartassist/src/backend.py b/smartassist/src/backend.py index 571cbf5..9a217f8 100644 --- a/smartassist/src/backend.py +++ b/smartassist/src/backend.py @@ -178,6 +178,18 @@ def chat(): return jsonify({'error': 'Invalid JSON response from server'}), 500 +@app.route('/api/endpoints', methods=['GET']) +def get_endpoints(): + # Replace this with your actual logic to fetch endpoint data + endpoints = [ + {'endpoint': 'endpoint1', 'llm': 'llm1'}, + {'endpoint': 'endpoint2', 'llm': 'llm2'}, + {'endpoint': 'endpoint3', 'llm': 'llm3'}, + {'endpoint': 'endpoint4', 'llm': 'llm4'}, + ] + + return jsonify(endpoints) + @app.route('/smartassist', methods=["POST"]) def smartassist():