You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bigframes/ml/llm.py
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,6 @@
21
21
22
22
importbigframes_vendored.constantsasconstants
23
23
fromgoogle.cloudimportbigquery
24
-
importtyping_extensions
25
24
26
25
frombigframesimportdtypes, exceptions
27
26
importbigframes.bigqueryasbbq
@@ -113,11 +112,11 @@
113
112
"If you proceed with '{model_name}', it might not work as expected or could lead to errors with multimodal inputs."
114
113
)
115
114
116
-
117
-
@typing_extensions.deprecated(
118
-
"text-embedding-004 is going to be deprecated. Use text-embedding-005 (https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.llm.TextEmbeddingGenerator) instead.",
119
-
category=exceptions.ApiDeprecationWarning,
115
+
_MODEL_DEPRECATE_WARNING= (
116
+
"'{model_name}' is going to be deprecated. Use '{new_model_name}' ({link}) instead."
"gemini-1.5-X are going to be deprecated. Use gemini-2.0-X (https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.llm.GeminiTextGenerator) instead. ",
0 commit comments