22
33import shutil
44from pathlib import Path
5+ from typing import Literal
56
67import typer
78from typing_extensions import Annotated
@@ -25,6 +26,7 @@ def evaluate_mini(
2526 container_name : ContainerName ,
2627 username : ContainerUsername ,
2728 password : ContainerPassword ,
29+ model : Annotated [Literal ["azure/gpt-4.1" ], typer .Option (help = "Azure AI Foundry Model to use for mini-bc-agent" )] = "azure/gpt-4.1" ,
2830 dataset_path : DatasetPath = _config .paths .dataset_path ,
2931 repo_path : RepoPath = _config .paths .nav_repo_path ,
3032 output_dir : OutputDir = _config .paths .evaluation_results_path ,
@@ -66,6 +68,7 @@ def evaluate_mini(
6668 container_name = container_name ,
6769 username = username ,
6870 password = password ,
71+ model = model ,
6972 agent_name = "mini-bc-agent" ,
7073 agent_options = {
7174 "enable_bc_tools" : enable_bc_tools ,
@@ -79,6 +82,7 @@ def evaluate_mini(
7982 lambda ctx : run_mini_agent (
8083 entry = ctx .entry ,
8184 repo_path = ctx .repo_path ,
85+ model = ctx .model ,
8286 include_project_paths = include_project_paths ,
8387 enable_bc_tools = ctx .get_agent_option ("enable_bc_tools" , False ),
8488 container_name = ctx .container_name ,
@@ -136,6 +140,7 @@ def evaluate_copilot(
136140 container_name = container_name ,
137141 username = username ,
138142 password = password ,
143+ model = model ,
139144 agent_name = "GitHub Copilot CLI" ,
140145 )
141146
@@ -144,7 +149,7 @@ def evaluate_copilot(
144149 lambda ctx : run_copilot_agent (
145150 entry = ctx .entry ,
146151 repo_path = ctx .repo_path ,
147- model = model ,
152+ model = ctx . model ,
148153 include_project_paths = include_project_paths ,
149154 output_dir = ctx .result_dir ,
150155 ),
0 commit comments