From bb7af3827d4822b2cd5151c8f6d76570c9d027bf Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Mon, 14 Aug 2023 20:08:34 +0200 Subject: [PATCH] Update `canals` to `0.5.0` (#5564) * Update canals to 0.5.0 * Fix RemoteWhisperTranscriber serialisation --- haystack/preview/components/audio/whisper_remote.py | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/haystack/preview/components/audio/whisper_remote.py b/haystack/preview/components/audio/whisper_remote.py index 743efc451..3b515e867 100644 --- a/haystack/preview/components/audio/whisper_remote.py +++ b/haystack/preview/components/audio/whisper_remote.py @@ -54,6 +54,12 @@ class RemoteWhisperTranscriber: self.whisper_params = whisper_params or {} self.model_name = model_name + self.init_parameters = { + "api_key": self.api_key, + "model_name": self.model_name, + "api_base": self.api_base, + "whisper_params": self.whisper_params, + } @component.output_types(documents=List[Document]) def run(self, audio_files: List[Path], whisper_params: Optional[Dict[str, Any]] = None): diff --git a/pyproject.toml b/pyproject.toml index b3e52581e..3a64cdcba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ dependencies = [ "jsonschema", # Preview - "canals==0.4.0", + "canals==0.5.0", # Agent events "events",