Fix linting

This commit is contained in:
yangdx
2025-03-18 16:18:37 +08:00
parent d80ca4dc07
commit 5536ed50ca

View File

@@ -341,7 +341,7 @@ def create_app(args):
# Add Ollama API routes # Add Ollama API routes
ollama_api = OllamaAPI(rag, top_k=args.top_k) ollama_api = OllamaAPI(rag, top_k=args.top_k)
app.include_router(ollama_api.router, prefix="/api") app.include_router(ollama_api.router, prefix="/api")
@app.get("/") @app.get("/")
async def redirect_to_webui(): async def redirect_to_webui():
"""Redirect root path to /webui""" """Redirect root path to /webui"""