This commit is contained in:
Timothy Jaeryang Baek 2025-01-13 00:34:15 -08:00
parent 42e8d8ce49
commit ad93341b74
3 changed files with 22 additions and 0 deletions

View File

@ -5,12 +5,31 @@ from pathlib import Path
import typer
import uvicorn
from typing import Optional
from typing_extensions import Annotated
app = typer.Typer()
KEY_FILE = Path.cwd() / ".webui_secret_key"
def version_callback(value: bool):
if value:
from open_webui.env import VERSION
typer.echo(f"Open WebUI version: {VERSION}")
raise typer.Exit()
@app.command()
def main(
version: Annotated[
Optional[bool], typer.Option("--version", callback=version_callback)
] = None,
):
pass
@app.command()
def serve(
host: str = "0.0.0.0",

View File

@ -47,6 +47,8 @@ pymilvus==2.5.0
qdrant-client~=1.12.0
opensearch-py==2.7.1
transformers
sentence-transformers==3.3.1
colbert-ai==0.2.21
einops==0.8.0

View File

@ -54,6 +54,7 @@ dependencies = [
"qdrant-client~=1.12.0",
"opensearch-py==2.7.1",
"transformers",
"sentence-transformers==3.3.1",
"colbert-ai==0.2.21",
"einops==0.8.0",