Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.

Commit df831a4

Browse files
committed
Updated protocol version
1 parent f606634 commit df831a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

whispering/schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def validate_model_name(cls, values):
2424
return values
2525

2626

27-
CURRENT_PROTOCOL_VERSION: Final[int] = int("000_006_000")
27+
CURRENT_PROTOCOL_VERSION: Final[int] = int("000_006_002")
2828

2929

3030
class Context(BaseModel, arbitrary_types_allowed=True):

whispering/serve.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
import websockets
1010
from websockets.exceptions import ConnectionClosedOK
1111

12-
from whispering.schema import Context
12+
from whispering.schema import CURRENT_PROTOCOL_VERSION, Context
1313
from whispering.transcriber import WhisperStreamingTranscriber
1414

1515
logger = getLogger(__name__)
1616

1717
MIN_PROTOCOL_VERSION: Final[int] = int("000_006_000")
18-
MAX_PROTOCOL_VERSION: Final[int] = int("000_006_000")
18+
MAX_PROTOCOL_VERSION: Final[int] = CURRENT_PROTOCOL_VERSION
1919

2020

2121
async def serve_with_websocket_main(websocket):

0 commit comments

Comments
 (0)