v2.0.1 - Major Architecture Overhaul: Modular Package + Performance Timing #10
Locked
rbb-dev
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
v2.0.1 - Major Architecture Overhaul
The OpenRouter pipe has been completely restructured from a single 18,000+ line monolith into a clean, modular Python package. This release brings significant improvements to maintainability, performance, and developer experience.
Quick Install
Recommended: Use Open WebUI's "Import from Link" feature:
The stub loader automatically installs the full package from the
v2.0.1branch, ensuring you get a stable, pinned version.What's New
Modular Package Architecture
The codebase has been restructured into focused subsystems:
api/core/models/requests/storage/streaming/tools/Performance Timing System
New opt-in profiling to diagnose performance issues:
ENABLE_TIMING_LOGvalve - Toggle timing instrumentationTIMING_LOG_FILEvalve - Output path (default:logs/timing.jsonl)@timeddecorator on 313 functions for comprehensive profilingtiming_mark()for point-in-time events (HTTP start, first chunk, etc.)Lazy Loading
Key Improvements
v2.0.1for stabilityUpgrading from v1.x
If you're upgrading from a previous version:
Your chat history and settings are preserved - only the pipe code is replaced.
Documentation
Important: Monolith Deprecation
This modular package is now the maintained codebase. The original single-file monolith (
open_webui_openrouter_pipe.pyfrom v1.x) will no longer receive updates.Maintaining two parallel codebases isn't practical - all future development, bug fixes, and features will be in this v2.x package architecture.
Feedback
Found a bug? Have a feature request? Open an issue on GitHub.
All reactions