fix(llm): support draft editor retries by adding correct_num to LLMConfig (#11530)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Justin Coffi <jcoffi+github@gmail.com>
This commit is contained in:
Ray Myers
2025-10-27 20:02:50 -05:00
committed by GitHub
parent 4decd8b3e9
commit 450aa3b527
2 changed files with 4 additions and 2 deletions

View File

@@ -400,8 +400,8 @@ class FileEditRuntimeMixin(FileEditRuntimeInterface):
ret_obs.llm_metrics = self.draft_editor_llm.metrics
return ret_obs
def check_retry_num(self, retry_num):
correct_num = self.draft_editor_llm.config.correct_num # type: ignore[attr-defined]
def check_retry_num(self, retry_num: int) -> bool:
correct_num = self.draft_editor_llm.config.correct_num
return correct_num < retry_num
def correct_edit(