Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/single_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def list_semantic_kernel_plugins():

if debug_mode:
# Local development with HTTPS
app.run(host="0.0.0.0", port=5001, debug=True, ssl_context='adhoc')
app.run(host="0.0.0.0", port=5000, debug=True, ssl_context='adhoc')
else:
# Production
port = int(os.environ.get("PORT", 5000))
Expand Down
2 changes: 1 addition & 1 deletion application/single_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
EXECUTOR_TYPE = 'thread'
EXECUTOR_MAX_WORKERS = 30
SESSION_TYPE = 'filesystem'
VERSION = "0.229.062"
VERSION = "0.230.001"


SECRET_KEY = os.getenv('SECRET_KEY', 'dev-secret-key-change-in-production')
Expand Down
318 changes: 0 additions & 318 deletions application/single_app/example_swagger_usage.py

This file was deleted.

13 changes: 13 additions & 0 deletions application/single_app/plugin_validation_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
from semantic_kernel_plugins.plugin_loader import discover_plugins
from functions_appinsights import log_event
from functions_authentication import login_required, admin_required
from swagger_wrapper import swagger_route, get_auth_security
import logging


plugin_validation_bp = Blueprint('plugin_validation', __name__)


@plugin_validation_bp.route('/api/admin/plugins/validate', methods=['POST'])
@swagger_route(
security=get_auth_security()
)
@login_required
@admin_required
def validate_plugin_manifest():
Expand Down Expand Up @@ -60,6 +64,9 @@ def validate_plugin_manifest():


@plugin_validation_bp.route('/api/admin/plugins/test-instantiation', methods=['POST'])
@swagger_route(
security=get_auth_security()
)
def test_plugin_instantiation():
"""
Test if a plugin can be instantiated successfully.
Expand Down Expand Up @@ -128,6 +135,9 @@ def normalize(s):


@plugin_validation_bp.route('/api/admin/plugins/health-check/<plugin_name>', methods=['GET'])
@swagger_route(
security=get_auth_security()
)
def check_plugin_health(plugin_name):
"""
Perform a health check on an existing plugin.
Expand Down Expand Up @@ -201,6 +211,9 @@ def normalize(s):


@plugin_validation_bp.route('/api/admin/plugins/repair/<plugin_name>', methods=['POST'])
@swagger_route(
security=get_auth_security()
)
def repair_plugin(plugin_name):
"""
Attempt to repair a plugin that has issues.
Expand Down
Loading