1414
1515from __future__ import annotations
1616
17- from typing import Any , cast , List , Mapping , Optional , Union
17+ from typing import cast , List , Mapping , Optional , Union
1818
1919import bigframes_vendored .constants
2020import google .cloud .bigquery
@@ -443,10 +443,8 @@ def generate_text(
443443 top_k : Optional [int ] = None ,
444444 top_p : Optional [float ] = None ,
445445 flatten_json_output : Optional [bool ] = None ,
446- safety_settings : Optional [Mapping [str , str ]] = None ,
447446 stop_sequences : Optional [List [str ]] = None ,
448447 ground_with_google_search : Optional [bool ] = None ,
449- model_params : Optional [Mapping [str , Any ]] = None ,
450448 request_type : Optional [str ] = None ,
451449) -> dataframe .DataFrame :
452450 """
@@ -489,16 +487,10 @@ def generate_text(
489487 default value is ``0.95``.
490488 flatten_json_output (bool, optional):
491489 A BOOL value that determines the content of the generated JSON column.
492- safety_settings (Mapping[str, str], optional):
493- A STRUCT value that contains the safety settings for the model.
494- The STRUCT must have a ``category`` field of type STRING and a
495- ``threshold`` field of type STRING.
496490 stop_sequences (List[str], optional):
497491 An ARRAY<STRING> value that contains the stop sequences for the model.
498492 ground_with_google_search (bool, optional):
499493 A BOOL value that determines whether to ground the model with Google Search.
500- model_params (Mapping[str, Any], optional):
501- A JSON value that contains the parameters for the model.
502494 request_type (str, optional):
503495 A STRING value that contains the request type for the model.
504496
@@ -519,10 +511,8 @@ def generate_text(
519511 top_k = top_k ,
520512 top_p = top_p ,
521513 flatten_json_output = flatten_json_output ,
522- safety_settings = safety_settings ,
523514 stop_sequences = stop_sequences ,
524515 ground_with_google_search = ground_with_google_search ,
525- model_params = model_params ,
526516 request_type = request_type ,
527517 )
528518
0 commit comments