diff --git a/docs/features/plugin/migration/index.mdx b/docs/features/plugin/migration/index.mdx index e045439..575515f 100644 --- a/docs/features/plugin/migration/index.mdx +++ b/docs/features/plugin/migration/index.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 4 title: "🚚 Migrating Tools & Functions: 0.4 to 0.5" --- diff --git a/docs/features/plugin/functions/tab-shared/Common.md b/docs/features/plugin/valves/index.mdx similarity index 96% rename from docs/features/plugin/functions/tab-shared/Common.md rename to docs/features/plugin/valves/index.mdx index 51b7d8a..272c192 100644 --- a/docs/features/plugin/functions/tab-shared/Common.md +++ b/docs/features/plugin/valves/index.mdx @@ -1,8 +1,14 @@ -## Shared Function Components +--- +sidebar_position: 3 +title: "🔄 Valves & UserValves" +--- -### Valves and UserValves - (optional, but HIGHLY encouraged) +## Valves & UserValves -Valves and UserValves are used to allow users to provide dynamic details such as an API key or a configuration option. These will create a fillable field or a bool switch in the GUI menu for the given function. + +Valves and UserValves are used to allow users to provide dynamic details such as an API key or a configuration option. These will create a fillable field or a bool switch in the GUI menu for the given function. They are always optional, but HIGHLY encouraged. + +Hence, Valves and UserValves class can be defined in either a `Pipe`, `Pipeline`, `Filter` or `Tools` class. Valves are configurable by admins alone via the Tools or Functions menus. On the other hand UserValves are configurable by any users directly from a chat session.