-
Notifications
You must be signed in to change notification settings - Fork 12
Plugins
leafspark edited this page Aug 23, 2024
·
1 revision
The AutoGGUF plugin system allows users to extend and customize the functionality of the AutoGGUF application. Plugins can add new features, modify existing behaviors, and integrate with the core application.
A plugin is a Python file placed in the plugins
directory. Each plugin should contain a main class that defines the plugin's functionality.
class MyPlugin:
def init(self, autogguf_instance):
# This method is called after the plugin is loaded
# You can use it to set up your plugin or modify the AutoGGUF instance
pass
def __data__(self):
# This method should return metadata about your plugin
return {
"name": "My Plugin",
"description": "This is an example plugin.",
"supported_versions": ["*"],
"author": "Your Name",
"version": "1.0.0"
}
# Add your custom methods and attributes here
# These replace the ones in the AutoGGUF class if the name matches
def my_custom_method(self):
print("This is a custom method from the plugin")