Skip to content

Commit 99da602

Browse files
authored
chore: Google AI - suggest users to switch to Google GenAI (#2106)
* chore: Google AI - suggest users to switch to Google GenAI * docs reference
1 parent 6b85df0 commit 99da602

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • integrations/google_ai/src/haystack_integrations/components/generators/google_ai/chat

integrations/google_ai/src/haystack_integrations/components/generators/google_ai/chat/gemini.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ def __init__(
174174
:param streaming_callback: A callback function that is called when a new token is received from the stream.
175175
The callback function accepts StreamingChunk as an argument.
176176
"""
177+
soft_deprecation_msg = (
178+
"This component uses a deprecated SDK. We recommend using the GoogleGenAIChatGenerator instead. "
179+
"Documentation is available at https://docs.haystack.deepset.ai/docs/googlegenaichatgenerator."
180+
)
181+
logger.warning(soft_deprecation_msg)
177182

178183
genai.configure(api_key=api_key.resolve_value())
179184
_check_duplicate_tool_names(tools)

0 commit comments

Comments
 (0)