Update version display on web UI (#3405)

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Refactoring

---------

Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2024-11-14 17:51:21 +08:00
committed by GitHub
parent 30f6421760
commit e4c4fdabbd
4 changed files with 28 additions and 30 deletions

View File

@ -30,7 +30,7 @@ from api.utils.api_utils import (
server_error_response,
generate_confirmation_token,
)
from api.versions import get_rag_version
from api.versions import get_ragflow_version
from api.settings import docStoreConn
from rag.utils.storage_factory import STORAGE_IMPL, STORAGE_IMPL_TYPE
from timeit import default_timer as timer
@ -58,7 +58,7 @@ def version():
type: string
description: Version number.
"""
return get_json_result(data=get_rag_version())
return get_json_result(data=get_ragflow_version())
@manager.route("/status", methods=["GET"])