Skip to content

crooy/openwebui-extras

Repository files navigation

OpenWebUI Functions

All functions in this repository can be found at github.com/crooy/openwebui-extras

For detailed version history, see CHANGELOG.md

Development

Setup

Using Nix Flake (recommended):

# Enable flakes in your nix configuration

# Enter development shell
nix develop

# Or use direnv with flakes
direnv allow

Manual setup:

pip install -r requirements-dev.txt

Linting

mypy .
flake8 .
black .

The code is typed against the OpenWebUI models by installing the package as a dev dependency.

For detailed version history, see CHANGELOG.md

Development

Setup

Using Nix Flake (recommended):

# Enable flakes in your nix configuration

# Enter development shell
nix develop

# Or use direnv with flakes
direnv allow

Manual setup:

pip install -r requirements-dev.txt

Linting

mypy .
flake8 .
black .

The code is typed against the OpenWebUI models by installing the package as a dev dependency.

Memory Management Functions

Auto Memory

Automatically identifies and stores important information from user messages. Uses OpenAI's API to:

  • Detect memorable information from user messages
  • Retrieve relevant memories based on context
  • Avoid storing duplicate memories
  • Add memory context to conversations

Add Memories

Allows manual saving of conversation snippets to memory.

  • Stores both user message and assistant response
  • Provides status updates during memory operations
  • Handles errors gracefully with user feedback

Configuration

Both memory functions can be configured through their respective valve settings:

  • Enable/disable functionality
  • Adjust OpenAI API settings (auto-memory)
  • Control number of related memories to include
  • Set memory relevance thresholds

Repository

All code is available at github.com/crooy/openwebui-extras. Feel free to:

  • Submit issues
  • Create pull requests
  • Fork the repository
  • Contribute improvements

Known Issues

  • the grouping and cleaning of memories works but not very well, i do see memories being updated instead of adding duplicates. But improvements are welcome.

Development Status

This project is in active development. See CHANGELOG.md for recent changes.

About

functions etc for openwebui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages