docs: remove model_weak configuration and simplify model selection

This commit is contained in:
mrT23
2024-12-11 18:10:34 +02:00
parent cb88489dbe
commit 872b27bfd8
4 changed files with 13 additions and 18 deletions

View File

@ -27,6 +27,12 @@ from pr_agent.config_loader import get_settings, global_settings
from pr_agent.log import get_logger
def get_weak_model() -> str:
if get_settings().get("config.model_weak"):
return get_settings().config.model_weak
return get_settings().config.model
class Range(BaseModel):
line_start: int # should be 0-indexed
line_end: int