File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def generate_content() -> str:
3131 top_p = 0.95 ,
3232 top_k = 20 ,
3333 seed = 5 ,
34- max_output_tokens = 100 ,
34+ max_output_tokens = 500 ,
3535 stop_sequences = ["STOP!" ],
3636 presence_penalty = 0.0 ,
3737 frequency_penalty = 0.0 ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def generate_content() -> str:
2424 )
2525
2626 client = genai .Client (http_options = HttpOptions (api_version = "v1" ))
27- model_id = "gemini-2.0 -flash-001 "
27+ model_id = "gemini-2.5 -flash"
2828
2929 get_album_sales = FunctionDeclaration (
3030 name = "get_album_sales" ,
@@ -88,7 +88,7 @@ def generate_content() -> str:
8888 # },
8989 # )]
9090 # [END googlegenaisdk_tools_func_desc_with_txt]
91- return str (response .function_calls [ 0 ] )
91+ return str (response .function_calls )
9292
9393
9494if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments