Skip to content

Commit

Permalink
fix: websocket version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Aug 25, 2023
1 parent 4e162c7 commit 74119d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bot/xunfei/xunfei_spark_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ def __init__(self, reply, usage=None, is_end=False):

# 收到websocket错误的处理
def on_error(ws, error):

logger.error("[XunFei] error:", error)


# 收到websocket关闭的处理
def on_close(ws, one, two):
def on_close(ws):
data_queue = queue_map.get(ws.session_id)
data_queue.put("END")

Expand Down
3 changes: 1 addition & 2 deletions requirements-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ wechatpy
chatgpt_tool_hub==0.4.6

# xunfei spark
websocket==0.2.1
websocket-client==1.6.2
websocket-client==1.2.0

0 comments on commit 74119d0

Please sign in to comment.