diff --git a/llm_server/routes/v1/__init__.py b/llm_server/routes/v1/__init__.py index c812f85..cdfba2f 100644 --- a/llm_server/routes/v1/__init__.py +++ b/llm_server/routes/v1/__init__.py @@ -10,7 +10,7 @@ old_v1_bp = Blueprint('v1', __name__) @old_v1_bp.route('/', methods=['GET', 'POST']) def fallback(path): base_client_api = redis.get('base_client_api', dtype=str) - error_msg = f'The /v1/ endpoint has been depreciated. Please visit {base_client_api} for more information.' + error_msg = f'The /v1/ endpoint has been depreciated. Please visit {base_client_api} for more information.\nAlso, you must enable "Relaxed API URLS" in settings.' response_msg = format_sillytavern_err(error_msg, error_type='API') return jsonify({ 'results': [{'text': response_msg}], diff --git a/server.py b/server.py index dd508cc..380bef0 100644 --- a/server.py +++ b/server.py @@ -1,5 +1,3 @@ -from llm_server.routes.v1 import old_v1_bp - try: import gevent.monkey @@ -23,6 +21,7 @@ from llm_server.database.create import create_db from llm_server.pre_fork import server_startup from llm_server.routes.openai import openai_bp from llm_server.routes.server_error import handle_server_error +from llm_server.routes.v1 import old_v1_bp from llm_server.routes.v2 import bp from llm_server.sock import init_socketio diff --git a/templates/home.html b/templates/home.html index c366263..a706801 100644 --- a/templates/home.html +++ b/templates/home.html @@ -111,6 +111,7 @@

Instructions

    +
  1. In Settings > Power User Options, enable Relaxed API URLS
  2. Set your API type to {{ mode_name }}
  3. Enter {{ client_api }} in the {{ api_input_textbox }} textbox.
  4. {% if enable_streaming %}