mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 18:31:00 +00:00
Updated protocol version
This commit is contained in:
parent
f606634d27
commit
df831a4f8d
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue