From 001c26b79ce374e4cda1bbc083a42b7d344393b9 Mon Sep 17 00:00:00 2001 From: Rahul Tayal Date: Mon, 14 Apr 2025 23:29:16 +0530 Subject: [PATCH 1/3] Fixed params issue in Google Vertex ai --- CHANGELOG.md | 3 +++ src/pipecat/services/google/llm_vertex.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 205339086..9fdcbdbc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue in `SmallWebRTCTransport` where an error was thrown if the client did not create a video transceiver. +- Fixed an issue where llm input parameters were not working and applied correctly in `GoogleVertexLLMService`, causing + unexpected behavior during inference. + ## [0.0.63] - 2025-04-11 ### Added diff --git a/src/pipecat/services/google/llm_vertex.py b/src/pipecat/services/google/llm_vertex.py index 1a23fe7d5..3d8942074 100644 --- a/src/pipecat/services/google/llm_vertex.py +++ b/src/pipecat/services/google/llm_vertex.py @@ -65,7 +65,7 @@ class GoogleVertexLLMService(OpenAILLMService): base_url = self._get_base_url(params) self._api_key = self._get_api_token(credentials, credentials_path) - super().__init__(api_key=self._api_key, base_url=base_url, model=model, **kwargs) + super().__init__(api_key=self._api_key, base_url=base_url, model=model,params=params, **kwargs) @staticmethod def _get_base_url(params: InputParams) -> str: From ce41a7585bd501b7f1a4e6c74cc6e2a51b74df1e Mon Sep 17 00:00:00 2001 From: Rahul Tayal Date: Wed, 16 Apr 2025 22:24:25 +0530 Subject: [PATCH 2/3] Resolved comment to update change log --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdcbdbc5..b5ba50636 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue in `SmallWebRTCTransport` where an error was thrown if the client did not create a video transceiver. -- Fixed an issue where llm input parameters were not working and applied correctly in `GoogleVertexLLMService`, causing +- Fixed an issue where LLM input parameters were not working and applied correctly in `GoogleVertexLLMService`, causing unexpected behavior during inference. ## [0.0.63] - 2025-04-11 From ac64f0ba910a2673c48d4ff073eab07970aa6fb3 Mon Sep 17 00:00:00 2001 From: Rahul Tayal Date: Wed, 16 Apr 2025 23:19:09 +0530 Subject: [PATCH 3/3] Run ruff on code --- CHANGELOG.md | 2 +- src/pipecat/services/google/llm_vertex.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5ba50636..c338d672e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue in `SmallWebRTCTransport` where an error was thrown if the client did not create a video transceiver. -- Fixed an issue where LLM input parameters were not working and applied correctly in `GoogleVertexLLMService`, causing +- Fixed an issue where LLM input parameters were not working and applied correctly in `GoogleVertexLLMService`, causing unexpected behavior during inference. ## [0.0.63] - 2025-04-11 diff --git a/src/pipecat/services/google/llm_vertex.py b/src/pipecat/services/google/llm_vertex.py index 3d8942074..165146c04 100644 --- a/src/pipecat/services/google/llm_vertex.py +++ b/src/pipecat/services/google/llm_vertex.py @@ -65,7 +65,9 @@ class GoogleVertexLLMService(OpenAILLMService): base_url = self._get_base_url(params) self._api_key = self._get_api_token(credentials, credentials_path) - super().__init__(api_key=self._api_key, base_url=base_url, model=model,params=params, **kwargs) + super().__init__( + api_key=self._api_key, base_url=base_url, model=model, params=params, **kwargs + ) @staticmethod def _get_base_url(params: InputParams) -> str: