mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
refactor: remove unused development route (#32869)
Removes a leftover development-only route that nothing in the app calls.
This commit is contained in:
parent
a915df8ce1
commit
d1e31cbb81
1 changed files with 0 additions and 8 deletions
|
|
@ -37,7 +37,6 @@ from langchain_text_splitters import (
|
|||
from open_webui.config import (
|
||||
Config,
|
||||
DEFAULT_LOCALE,
|
||||
ENV,
|
||||
RAG_EMBEDDING_CONTENT_PREFIX,
|
||||
RAG_EMBEDDING_MODEL_AUTO_UPDATE,
|
||||
RAG_EMBEDDING_MODEL_TRUST_REMOTE_CODE,
|
||||
|
|
@ -3002,13 +3001,6 @@ async def reset_upload_dir(request: Request, user=Depends(get_admin_user)) -> bo
|
|||
return True
|
||||
|
||||
|
||||
if ENV == 'dev':
|
||||
|
||||
@router.get('/ef/{text}')
|
||||
async def get_embeddings(request: Request, text: str | None = 'Hello World!'):
|
||||
return {'result': await request.app.state.EMBEDDING_FUNCTION(text, prefix=RAG_EMBEDDING_QUERY_PREFIX)}
|
||||
|
||||
|
||||
class BatchProcessFilesForm(BaseModel):
|
||||
files: list[FileModel]
|
||||
collection_name: str
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue