Skip to content

Commit 81c6bc8

Browse files
authored
Merge branch 'main' into sycai_type_usage
2 parents 93c2689 + 74150c5 commit 81c6bc8

File tree

1 file changed

+6
-6
lines changed
  • bigframes/bigquery/_operations

1 file changed

+6
-6
lines changed

bigframes/bigquery/_operations/ai.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ def generate(
5858
>>> import bigframes.pandas as bpd
5959
>>> import bigframes.bigquery as bbq
6060
>>> country = bpd.Series(["Japan", "Canada"])
61-
>>> bbq.ai.generate(("What's the capital city of ", country, " one word only"))
62-
0 {'result': 'Tokyo\\n', 'full_response': '{"cand...
63-
1 {'result': 'Ottawa\\n', 'full_response': '{"can...
61+
>>> bbq.ai.generate(("What's the capital city of ", country, " one word only")) # doctest: +SKIP
62+
0 {'result': 'Tokyo', 'full_response': '{"cand...
63+
1 {'result': 'Ottawa', 'full_response': '{"can...
6464
dtype: struct<result: string, full_response: extension<dbjson<JSONArrowType>>, status: string>[pyarrow]
6565
66-
>>> bbq.ai.generate(("What's the capital city of ", country, " one word only")).struct.field("result")
67-
0 Tokyo\\n
68-
1 Ottawa\\n
66+
>>> bbq.ai.generate(("What's the capital city of ", country, " one word only")).struct.field("result") # doctest: +SKIP
67+
0 Tokyo
68+
1 Ottawa
6969
Name: result, dtype: string
7070
7171
You get structured output when the `output_schema` parameter is set:

0 commit comments

Comments
 (0)