LiYongHui yonghui li commited on
Commit
3c41162
·
1 Parent(s): 2721f55

fix import error (#877)

Browse files

Fix import error for user_app.py

---------

Co-authored-by: yonghui li <[email protected]>

Files changed (1) hide show
  1. api/apps/user_app.py +2 -1
api/apps/user_app.py CHANGED
@@ -13,6 +13,7 @@
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
 
16
  import re
17
  from datetime import datetime
18
 
@@ -25,7 +26,7 @@ from api.db.services.llm_service import TenantLLMService, LLMService
25
  from api.utils.api_utils import server_error_response, validate_request
26
  from api.utils import get_uuid, get_format_time, decrypt, download_img, current_timestamp, datetime_format
27
  from api.db import UserTenantRole, LLMType, FileType
28
- from api.settings import RetCode, GITHUB_OAUTH, CHAT_MDL, EMBEDDING_MDL, ASR_MDL, IMAGE2TEXT_MDL, PARSERS, API_KEY, \
29
  LLM_FACTORY, LLM_BASE_URL
30
  from api.db.services.user_service import UserService, TenantService, UserTenantService
31
  from api.db.services.file_service import FileService
 
13
  # See the License for the specific language governing permissions and
14
  # limitations under the License.
15
  #
16
+ import json
17
  import re
18
  from datetime import datetime
19
 
 
26
  from api.utils.api_utils import server_error_response, validate_request
27
  from api.utils import get_uuid, get_format_time, decrypt, download_img, current_timestamp, datetime_format
28
  from api.db import UserTenantRole, LLMType, FileType
29
+ from api.settings import RetCode, GITHUB_OAUTH, FEISHU_OAUTH, CHAT_MDL, EMBEDDING_MDL, ASR_MDL, IMAGE2TEXT_MDL, PARSERS, API_KEY, \
30
  LLM_FACTORY, LLM_BASE_URL
31
  from api.db.services.user_service import UserService, TenantService, UserTenantService
32
  from api.db.services.file_service import FileService