Skip to content

Commit 44867af

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 42783a9 commit 44867af

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

context_chat_backend/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import os
1010
import signal
1111
import sys
12-
import time
1312
import traceback
1413
from collections.abc import Callable
1514
from contextlib import suppress
@@ -19,9 +18,7 @@
1918
from typing import Any, TypeGuard, TypeVar
2019

2120
from fastapi.responses import JSONResponse as FastAPIJSONResponse
22-
from nc_py_api import NextcloudApp
2321

24-
from .controller import app_enabled
2522
from .types import AppRole, TConfig, TEmbeddingAuthApiKey, TEmbeddingAuthBasic, TEmbeddingConfig
2623

2724
T = TypeVar('T')
@@ -316,4 +313,4 @@ def get_app_role() -> AppRole:
316313
if role not in ['indexing', 'rp']:
317314
_logger.warning(f'Invalid app role: {role}, defaulting to all roles')
318315
return AppRole.NORMAL
319-
return AppRole(role)
316+
return AppRole(role)

0 commit comments

Comments
 (0)