Skip to content
Merged
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
5 changes: 4 additions & 1 deletion eval_protocol/pytest/remote_rollout_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ def __init__(
self,
*,
remote_base_url: Optional[str] = None,
model_base_url: Optional[str] = None,
poll_interval: float = 1.0,
timeout_seconds: float = 120.0,
output_data_loader: Callable[[str], DynamicDataLoader],
):
# Prefer constructor-provided configuration. These can be overridden via
# config.kwargs at call time for backward compatibility.
self._remote_base_url = remote_base_url
self._model_base_url = model_base_url
self._poll_interval = poll_interval
self._timeout_seconds = timeout_seconds
self._output_data_loader = output_data_loader
Expand All @@ -38,6 +40,7 @@ def __call__(self, rows: List[EvaluationRow], config: RolloutProcessorConfig) ->

# Start with constructor values
remote_base_url: Optional[str] = self._remote_base_url
model_base_url: Optional[str] = self._model_base_url
poll_interval: float = self._poll_interval
timeout_seconds: float = self._timeout_seconds

Expand Down Expand Up @@ -112,7 +115,7 @@ async def _process_row(row: EvaluationRow) -> EvaluationRow:
messages=clean_messages,
tools=row.tools,
metadata=meta,
model_base_url=config.kwargs.get("model_base_url", None),
model_base_url=model_base_url,
)

# Fire-and-poll
Expand Down
Loading