Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions vertexai/_genai/_evals_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import json
from typing import Any, Optional, Union

from google.genai import types as genai_types
from google.genai._api_client import BaseApiClient
from google.genai._common import get_value_by_path as getv
from google.genai._common import set_value_by_path as setv
Expand Down Expand Up @@ -347,13 +346,7 @@ def _postprocess_user_scenarios_response(
data_for_df = []
if hasattr(response, "user_scenarios") and response.user_scenarios:
for scenario in response.user_scenarios:
prompt_content = None
if scenario.starting_prompt:
prompt_content = genai_types.Content(
parts=[genai_types.Part(text=scenario.starting_prompt)]
)
eval_case = types.EvalCase(
prompt=prompt_content,
user_scenario=scenario,
)
eval_cases.append(eval_case)
Expand Down
Loading