forked from open-webui/open-webui
feat: hybrid search and reranking support
This commit is contained in:
parent
db801aee79
commit
c0259aad67
10 changed files with 262 additions and 131 deletions
|
@ -92,6 +92,10 @@ async def get_ollama_api_urls(user=Depends(get_admin_user)):
|
|||
return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS}
|
||||
|
||||
|
||||
def get_ollama_endpoint(url_idx: int = 0):
|
||||
return app.state.OLLAMA_BASE_URLS[url_idx]
|
||||
|
||||
|
||||
class UrlUpdateForm(BaseModel):
|
||||
urls: List[str]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue