@@ -228,9 +228,12 @@ async def _make_llm_request_with_retries(
228228 response = await self .llm_client .chat .completions .create (** request_data )
229229 self .responses .append (response )
230230 if self .config .take_screenshots :
231- self .balatro_client .screenshot (
232- self .data_collector .screenshot_dir / f"{ custom_id } .png"
233- )
231+ if self .config .use_default_paths :
232+ self .balatro_client .screenshot (None )
233+ else :
234+ self .balatro_client .screenshot (
235+ self .data_collector .screenshot_dir / f"{ custom_id } .png"
236+ )
234237 self .data_collector .write_response (
235238 id = str (time .time_ns () // 1_000_000 ),
236239 custom_id = custom_id ,
@@ -400,9 +403,14 @@ async def _init_game(self, base_dir: Path = Path.cwd()) -> dict[str, Any]:
400403 "stake" : self .config .stake ,
401404 "seed" : self .config .seed ,
402405 "challenge" : self .config .challenge ,
403- "log_path" : self .data_collector .run_dir / "gamestates.jsonl" ,
404406 }
405407
408+ # Only include log_path if not using default paths
409+ if not self .config .use_default_paths :
410+ start_run_args ["log_path" ] = (
411+ self .data_collector .run_dir / "gamestates.jsonl"
412+ )
413+
406414 return self .balatro_client .send_message ("start_run" , start_run_args )
407415
408416 async def _run_game_loop (self , game_state : dict [str , Any ]) -> None :
0 commit comments