From 2984f904992aece8dbe04a5c48f5da2c3972a47a Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:38:44 -0700 Subject: [PATCH] auto-update --- sijapi/helpers/start.py | 2 +- sijapi/routers/llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sijapi/helpers/start.py b/sijapi/helpers/start.py index e18fe7b..9fa7ce1 100644 --- a/sijapi/helpers/start.py +++ b/sijapi/helpers/start.py @@ -149,7 +149,7 @@ def kill_remote_server(server): def main(): load_env() - db_config = load_config('db') + db_config = load_config('sys') pool = db_config['POOL'] local_ts_id = os.environ.get('TS_ID') diff --git a/sijapi/routers/llm.py b/sijapi/routers/llm.py index e28afbd..cbe33c7 100644 --- a/sijapi/routers/llm.py +++ b/sijapi/routers/llm.py @@ -644,7 +644,7 @@ async def extract_text(file: Union[UploadFile, bytes, bytearray, str, Path], bg_ try: if isinstance(file, UploadFile): - info("File is an UploadFile object") + l.info("File is an UploadFile object") file_extension = os.path.splitext(file.filename)[1] temp_file_path = tempfile.mktemp(suffix=file_extension) with open(temp_file_path, 'wb') as buffer: