Skip to content

Commit 74cb9a2

Browse files
committed
fix(genai): add bug fixes.
1 parent ee970b0 commit 74cb9a2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

genai/text_generation/textgen_config_with_txt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

genai/tools/tools_func_desc_with_txt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

9494
if __name__ == "__main__":

0 commit comments

Comments
 (0)