소스 검색

适配外部机器人[新增聊天接口]

liangxunge 2 달 전
부모
커밋
fef42b3062
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      api/controllers/service_api/app/completion.py

+ 2 - 2
api/controllers/service_api/app/completion.py

@@ -1,11 +1,11 @@
 import json
 import logging
-from typing import Generator
+from collections.abc import Generator
 
 import requests
 from flask import request
 from flask_restful import Resource, reqparse  # type: ignore
-from werkzeug.exceptions import InternalServerError, NotFound, BadRequest
+from werkzeug.exceptions import BadRequest, InternalServerError, NotFound
 
 import services
 from controllers.service_api import api