feat: move model request to plugin daemon

This commit is contained in:
takatost
2024-09-29 00:14:44 +08:00
parent 1c3213184e
commit 47c8824be6
29 changed files with 127 additions and 118 deletions

View File

@ -17,11 +17,9 @@ class PluginDebuggingKeyApi(Resource):
user = current_user
if not user.is_admin_or_owner:
raise Forbidden()
tenant_id = user.current_tenant_id
return {
"key": PluginDebuggingService.get_plugin_debugging_key(tenant_id)
}
return {"key": PluginDebuggingService.get_plugin_debugging_key(tenant_id)}
api.add_resource(PluginDebuggingKeyApi, "/workspaces/current/plugin/debugging-key")
api.add_resource(PluginDebuggingKeyApi, "/workspaces/current/plugin/debugging-key")