|
|
|
|
|
|
|
|
from flask import current_app |
|
|
from flask import current_app |
|
|
from werkzeug.exceptions import NotFound |
|
|
from werkzeug.exceptions import NotFound |
|
|
|
|
|
|
|
|
|
|
|
from configs import dify_config |
|
|
from constants.languages import languages |
|
|
from constants.languages import languages |
|
|
from core.rag.datasource.vdb.vector_factory import Vector |
|
|
from core.rag.datasource.vdb.vector_factory import Vector |
|
|
from core.rag.datasource.vdb.vector_type import VectorType |
|
|
from core.rag.datasource.vdb.vector_type import VectorType |
|
|
|
|
|
|
|
|
After the reset, all LLM credentials will become invalid, requiring re-entry. |
|
|
After the reset, all LLM credentials will become invalid, requiring re-entry. |
|
|
Only support SELF_HOSTED mode. |
|
|
Only support SELF_HOSTED mode. |
|
|
""" |
|
|
""" |
|
|
if current_app.config['EDITION'] != 'SELF_HOSTED': |
|
|
|
|
|
|
|
|
if dify_config.EDITION != 'SELF_HOSTED': |
|
|
click.echo(click.style('Sorry, only support SELF_HOSTED mode.', fg='red')) |
|
|
click.echo(click.style('Sorry, only support SELF_HOSTED mode.', fg='red')) |
|
|
return |
|
|
return |
|
|
|
|
|
|