Skip to content

Commit c0ae54f

Browse files
sararobcopybara-github
authored andcommitted
chore: GenAI client - Fix mypy error
FUTURE_COPYBARA_INTEGRATE_REVIEW=#6967 from googleapis:release-please--branches--main 4a0d1d2 PiperOrigin-RevId: 948949459
1 parent 3335750 commit c0ae54f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

agentplatform/_genai/_evals_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ def _get_default_prompt_template(
483483
and eval_item.evaluation_request
484484
and eval_item.evaluation_request.prompt
485485
and eval_item.evaluation_request.prompt.prompt_template_data
486+
and eval_item.evaluation_request.prompt.prompt_template_data.values
486487
):
487488
if (
488489
"prompt"

vertexai/_genai/_evals_common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ def _get_default_prompt_template(
468468
and eval_item.evaluation_request
469469
and eval_item.evaluation_request.prompt
470470
and eval_item.evaluation_request.prompt.prompt_template_data
471+
and eval_item.evaluation_request.prompt.prompt_template_data.values
471472
):
472473
if (
473474
"prompt"

0 commit comments

Comments
 (0)