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
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):

View file

@ -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):