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

@@ -95,6 +95,8 @@ class LLMConfig(BaseModel):
description='Safety settings for models that support them (like Mistral AI and Gemini)',
)
for_routing: bool = Field(default=False)
# The number of correction attempts for the LLM draft editor
correct_num: int = Field(default=5)
completion_kwargs: dict[str, Any] | None = Field(
default=None,
description='Custom kwargs to pass to litellm.completion',