Fix eval run without engaging agent result in api key missing error

PiperOrigin-RevId: 757015581
This commit is contained in:
Yifan Wang 2025-05-09 21:01:48 -07:00 committed by Copybara-Service
parent 9a8c77e04a
commit 16014764b6

View File

@ -462,6 +462,7 @@ def get_fast_api_app(
"""Runs an eval given the details in the eval request.""" """Runs an eval given the details in the eval request."""
# Create a mapping from eval set file to all the evals that needed to be # Create a mapping from eval set file to all the evals that needed to be
# run. # run.
envs.load_dotenv_for_agent(os.path.basename(app_name), agent_dir)
eval_set_file_path = _get_eval_set_file_path( eval_set_file_path = _get_eval_set_file_path(
app_name, agent_dir, eval_set_id app_name, agent_dir, eval_set_id
) )