From 495bbc2abaace5d776fb98f2c6404693a46aca00 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Feb 2025 22:24:08 +0000 Subject: [PATCH 1/2] build(deps): bump google-genai from 0.5.0 to 1.3.0 in /application Bumps [google-genai](https://github.com/googleapis/python-genai) from 0.5.0 to 1.3.0. - [Release notes](https://github.com/googleapis/python-genai/releases) - [Changelog](https://github.com/googleapis/python-genai/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/python-genai/compare/v0.5.0...v1.3.0) --- updated-dependencies: - dependency-name: google-genai dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- application/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/requirements.txt b/application/requirements.txt index ffb96ecd..ef79e559 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -14,7 +14,7 @@ esutils==1.0.1 Flask==3.1.0 faiss-cpu==1.9.0.post1 flask-restx==1.3.0 -google-genai==0.5.0 +google-genai==1.3.0 google-generativeai==0.8.3 gTTS==2.5.4 gunicorn==23.0.0 From 84cbc1201c864299cd826bdded93ef3471b46e7a Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 24 Feb 2025 22:30:09 +0000 Subject: [PATCH 2/2] fix: googles update --- application/llm/google_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/llm/google_ai.py b/application/llm/google_ai.py index 31943601..48254349 100644 --- a/application/llm/google_ai.py +++ b/application/llm/google_ai.py @@ -22,7 +22,7 @@ class GoogleLLM(BaseLLM): parts = [] if role and content is not None: if isinstance(content, str): - parts = [types.Part.from_text(content)] + parts = [types.Part.from_text(text=content)] elif isinstance(content, list): for item in content: if "text" in item: