File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,22 @@ async def _process_row(row: EvaluationRow) -> EvaluationRow:
135135 if row .execution_metadata .rollout_id is None :
136136 raise ValueError ("Rollout ID is required in RemoteRolloutProcessor" )
137137
138+ final_model_base_url = model_base_url
139+ if model_base_url and model_base_url .startswith ("https://tracing.fireworks.ai/project_id/" ):
140+ final_model_base_url = (
141+ f"{ model_base_url } /rollout_id/{ meta .rollout_id } "
142+ f"/invocation_id/{ meta .invocation_id } "
143+ f"/experiment_id/{ meta .experiment_id } "
144+ f"/run_id/{ meta .run_id } "
145+ f"/row_id/{ meta .row_id } "
146+ )
147+
138148 init_payload : InitRequest = InitRequest (
139149 model = model ,
140150 messages = clean_messages ,
141151 tools = row .tools ,
142152 metadata = meta ,
143- model_base_url = model_base_url ,
153+ model_base_url = final_model_base_url ,
144154 elastic_search_config = self ._elastic_search_config ,
145155 )
146156
You can’t perform that action at this time.
0 commit comments