mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-22 00:41:02 +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
|
||||
|
||||
|
||||
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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue