Skip to content

Commit 3624f3b

Browse files
feat!: complete deprecation and cleanup of multimodal blob APIs (#16618)
This PR deprecates and cleans up experimental Multimodal Blob APIs in BigQuery DataFrames to focus on core supported features. Key Changes: - Removed public APIs: from_glob_path and read_gbq_object_table were removed from module exports and Session class. - Exposed internal API: Added _from_glob_path as an internal API in the module to support existing notebooks. Fixes #<478952827> 🦕 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 098c35c commit 3624f3b

35 files changed

Lines changed: 233 additions & 3286 deletions

File tree

packages/bigframes/bigframes/bigquery/_operations/ai.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
from bigframes import dataframe, dtypes, series, session
2727
from bigframes import pandas as bpd
28+
from bigframes.bigquery._operations import obj as bq_obj
2829
from bigframes.bigquery._operations import utils as bq_utils
2930
from bigframes.core import convert
3031
from bigframes.core.compile.sqlglot import sql as sg_sql
@@ -1183,7 +1184,7 @@ def _separate_context_and_series(
11831184
if isinstance(prompt, series.Series):
11841185
if prompt.dtype == dtypes.OBJ_REF_DTYPE:
11851186
# Multi-model support
1186-
return [None], [prompt.blob.read_url()]
1187+
return [None], [bq_obj.get_access_url(prompt, mode="R")]
11871188
return [None], [prompt]
11881189

11891190
prompt_context: List[str | None] = []
@@ -1220,7 +1221,7 @@ def _convert_series(
12201221

12211222
if result.dtype == dtypes.OBJ_REF_DTYPE:
12221223
# Support multimodal
1223-
return result.blob.read_url()
1224+
return bq_obj.get_access_url(result, mode="R")
12241225
return result
12251226

12261227

0 commit comments

Comments
 (0)