File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
bigframes/bigquery/_operations Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments