Skip to content

Commit cf255ec

Browse files
committed
Fix format
1 parent 442654d commit cf255ec

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

bigframes/bigquery/_operations/ai.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def ai_generate_bool(
3030
request_type: Literal["dedicated", "shared", "unspecified"] = "unspecified",
3131
model_params: Mapping[Any, Any] | None = None,
3232
) -> series.Series:
33-
"""Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.
33+
"""
34+
Returns the AI analysis based on the prompt, which can be any combination of text and unstructured data.
3435
3536
**Examples:**
3637
@@ -77,14 +78,14 @@ def ai_generate_bool(
7778
Specifies the connection to use to communicate with the model. For example, `myproject.us.myconnection`.
7879
If not provided, the connection from the current session will be used.
7980
endpoint (str, optional):
80-
Specifies the Vertex AI endpoint to use for the model. You can specify any generally available
81-
or preview Gemini model. If you specify the model name, BigQuery ML automatically identifies and
82-
uses the full endpoint of the model. If you don't specify an ENDPOINT value, BigQuery ML selects
83-
a recent stable version of Gemini to use.
81+
Specifies the Vertex AI endpoint to use for the model. For example `"gemini-2.5-flash"`. You can specify any
82+
generally available or preview Gemini model. If you specify the model name, BigQuery ML automatically identifies and
83+
uses the full endpoint of the model. If you don't specify an ENDPOINT value, BigQuery ML selects a recent stable
84+
version of Gemini to use.
8485
request_type (Literal["dedicated", "shared", "unspecified"]):
8586
Specifies the type of inference request to send to the Gemini model. The request type determines what
8687
quota the request uses.
87-
* "dedicated": function only uses Provisioned Throughput quota. The AI.GENERATE function returns the error Provisioned throughput is not purchased or is not active if Provisioned Throughput quota isn't available.
88+
* "dedicated": function only uses Provisioned Throughput quota. The function returns the error Provisioned throughput is not purchased or is not active if Provisioned Throughput quota isn't available.
8889
* "shared": the function only uses dynamic shared quota (DSQ), even if you have purchased Provisioned Throughput quota.
8990
* "unspecified":
9091
If you haven't purchased Provisioned Throughput quota, the function uses DSQ quota.

bigframes/core/compile/ibis_compiler/scalar_op_registry.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,11 +1981,11 @@ def ai_generate_bool(
19811981
prompt[f"_field_{idx + 1}"] = elem
19821982

19831983
return ai_ops.AIGenerateBool(
1984-
ibis.struct(prompt), # type: ignore
1985-
op.connection_id,# type: ignore
1986-
op.endpoint,# type: ignore
1987-
op.request_type.upper(),# type: ignore
1988-
op.model_params,# type: ignore
1984+
ibis.struct(prompt), # type: ignore
1985+
op.connection_id, # type: ignore
1986+
op.endpoint, # type: ignore
1987+
op.request_type.upper(), # type: ignore
1988+
op.model_params, # type: ignore
19891989
).to_expr()
19901990

19911991

0 commit comments

Comments
 (0)