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

Commit

Permalink
Updated protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
shirayu committed Oct 17, 2022
1 parent f606634 commit df831a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion whispering/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def validate_model_name(cls, 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):
Expand Down
4 changes: 2 additions & 2 deletions whispering/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
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):
Expand Down

0 comments on commit df831a4

Please sign in to comment.