Browse Source

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

liangxunge 2 months ago
parent
commit
fef42b3062
1 changed files with 2 additions and 2 deletions
  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