Skip to content

Commit f08c0bc

Browse files
docs(discoveryengine): update gemini model to stable 2026 version (#14093)
* docs(discoveryengine): update gemini model to stable 2026 version Updated model version to the 2026 stable production model for answer generation. * style: fix trailing whitespace and refine comment description * style: address review comments and fix trailing whitespace
1 parent 46bb4cc commit f08c0bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

discoveryengine/answer_query_sample.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def answer_query_sample(
6969
ignore_non_answer_seeking_query=False, # Optional: Ignore non-answer seeking query
7070
ignore_low_relevant_content=False, # Optional: Return fallback answer when content is not relevant
7171
model_spec=discoveryengine.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec(
72-
model_version="gemini-2.5-flash/answer_gen/v1", # Optional: Model to use for answer generation
72+
# Use the 2026 stable production model for answer generation
73+
model_version="gemini-2.5-flash/answer_gen/stable",
7374
),
7475
prompt_spec=discoveryengine.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec(
7576
preamble="Give a detailed answer.", # Optional: Natural language instructions for customizing the answer.

0 commit comments

Comments
 (0)