This repository contains a collection of helper scripts and enhancement functions designed to extend the capabilities of Open WebUI. These tools streamline development and provide advanced features, including integration with Google's Gemini API.
gemini_manifold.py
| Open WebUI Community
This is a manifold pipe function that adds support for Google's Gemini Studio API.
- Whitelist based model retrieval and registration.
- Support for text and image input.
- Streaming and non-streaming content generation.
Special handling for thinking models, including thought encapsulation.
API stopped providing thoughts googleapis/python-genai#226 :(- Support for Grounding with Google Search
Requires Open WebUI v0.5.5 or later.
thinking_gemini.py
: Open WebUI Community An outdated script, initially developed forgemini-2.0-flash-thinking-exp
model interactions. Superseded bygemini_manifold.py
.function_updater.py
: Automates updating functions on a server via a REST API, streamlining development.smallthinker_filter.py
: At first I wanted to code a simple filter that makes output of thesmallthinker:3b
nicer but now I'm thinking of turning it into more general reasoning model formatter.system_prompt_injector.py
: The idea is to allow chaning chat options like system prompt and temperature from the chatbox. It would pair nicely with Prompts feature Open WebUI offers.venice_manifold.py
: Open WebUI Community enables image creation by using any diffusion model offered by Venice.ai API.pipe_function_template.py
: Helpful skeletion (template) file for speeding up creation of newPipe
functions.
Contributions are welcome! Here's how to contribute:
-
Fork the repository to your own GitHub account.
-
Create a feature branch based on the
dev
branch. Name your branch something descriptive, likefeature/add-new-functionality
orfix/bug-description
.git checkout dev git checkout -b feature/your-feature-name
-
Commit your changes with clear and informative commit messages.
-
Push your feature branch to your forked repository.
git push origin feature/your-feature-name
-
Open a pull request on GitHub, targeting the
dev
branch of the main repository.
Important: Please ensure your pull request targets the dev
branch. Pull requests targeting master
will not be accepted.
Note: The dev
branch is where active development happens. The master
branch contains stable releases.
MIT License. See the LICENSE
file for details.
Thanks to the Open WebUI team and all contributors. Special thanks to Matthew for the groundwork on thinking_gemini.py
.