Updated protocol version

This commit is contained in:
Yuta Hayashibe 2022-10-17 22:09:23 +09:00 committed by Yuta Hayashibe
parent f606634d27
commit df831a4f8d
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ class WhisperConfig(BaseModel):
return values 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): class Context(BaseModel, arbitrary_types_allowed=True):

View file

@ -9,13 +9,13 @@ import numpy as np
import websockets import websockets
from websockets.exceptions import ConnectionClosedOK from websockets.exceptions import ConnectionClosedOK
from whispering.schema import Context from whispering.schema import CURRENT_PROTOCOL_VERSION, Context
from whispering.transcriber import WhisperStreamingTranscriber from whispering.transcriber import WhisperStreamingTranscriber
logger = getLogger(__name__) logger = getLogger(__name__)
MIN_PROTOCOL_VERSION: Final[int] = int("000_006_000") 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): async def serve_with_websocket_main(websocket):