From df831a4f8d4993fbcf4c985c8d21d73d06ffd8c8 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Mon, 17 Oct 2022 22:09:23 +0900 Subject: [PATCH] Updated protocol version --- whispering/schema.py | 2 +- whispering/serve.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/whispering/schema.py b/whispering/schema.py index 16e8501..561f400 100644 --- a/whispering/schema.py +++ b/whispering/schema.py @@ -24,7 +24,7 @@ class WhisperConfig(BaseModel): return values -CURRENT_PROTOCOL_VERSION: Final[int] = int("000_006_000") +CURRENT_PROTOCOL_VERSION: Final[int] = int("000_006_002") class Context(BaseModel, arbitrary_types_allowed=True): diff --git a/whispering/serve.py b/whispering/serve.py index f8bd363..4ee4f77 100644 --- a/whispering/serve.py +++ b/whispering/serve.py @@ -9,13 +9,13 @@ import numpy as np import websockets from websockets.exceptions import ConnectionClosedOK -from whispering.schema import Context +from whispering.schema import CURRENT_PROTOCOL_VERSION, Context from whispering.transcriber import WhisperStreamingTranscriber logger = getLogger(__name__) MIN_PROTOCOL_VERSION: Final[int] = int("000_006_000") -MAX_PROTOCOL_VERSION: Final[int] = int("000_006_000") +MAX_PROTOCOL_VERSION: Final[int] = CURRENT_PROTOCOL_VERSION async def serve_with_websocket_main(websocket):