latex_display_optimization.py
Python · 68 lines22 class Valves(BaseModel):23 # Whether to enable this filter; can be controlled via the Open WebUI GUI.24 enabled: bool = Field(True, description="Enable the LaTeX spacing filter")25 26 def __init__(self):27 self.valves = self.Valves()28 29 def inlet(self, body: dict, __user__: Optional[dict] = None) -> dict:30 # This filter does not modify input data.31 return body32 33 def stream(self, event: dict) -> dict: Optimize LaTeX Expressions Display in Open WebUI model outputs.
0
0 Optimize LaTeX Expressions Display in Open WebUI model outputs.
0
0 
