Skip to content

Commit fa9298a

Browse files
committed
Use claude 4.5 as the Anthropic fallback model for patcher
1 parent a596d4e commit fa9298a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

patcher/src/buttercup/patcher/agents/context_retriever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def __post_init__(self) -> None:
720720
self.llm = create_default_llm(model_name=ButtercupLLM.OPENAI_GPT_4_1.value)
721721
self.cheap_llm = create_default_llm(model_name=ButtercupLLM.OPENAI_GPT_4_1_MINI.value)
722722
self.cheap_fallback_llms = [
723-
create_default_llm(model_name=ButtercupLLM.CLAUDE_3_7_SONNET.value),
723+
create_default_llm(model_name=ButtercupLLM.CLAUDE_4_5_SONNET.value),
724724
create_default_llm(model_name=ButtercupLLM.GEMINI_PRO.value),
725725
]
726726

patcher/src/buttercup/patcher/agents/reflection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def __post_init__(self) -> None:
407407
"""Initialize a few fields"""
408408
default_llm = create_default_llm(model_name=ButtercupLLM.OPENAI_GPT_4_1.value)
409409
fallback_llms: list[Runnable] = []
410-
for fb_model in [ButtercupLLM.CLAUDE_3_7_SONNET, ButtercupLLM.GEMINI_PRO]:
410+
for fb_model in [ButtercupLLM.CLAUDE_4_5_SONNET, ButtercupLLM.GEMINI_PRO]:
411411
fallback_llms.append(create_default_llm(model_name=fb_model.value))
412412

413413
self.llm = default_llm.with_fallbacks(fallback_llms)

patcher/src/buttercup/patcher/agents/rootcause.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __post_init__(self) -> None:
138138
model_name=m.value,
139139
**kwargs,
140140
)
141-
for m in [ButtercupLLM.CLAUDE_3_7_SONNET, ButtercupLLM.GEMINI_PRO]
141+
for m in [ButtercupLLM.CLAUDE_4_5_SONNET, ButtercupLLM.GEMINI_PRO]
142142
]
143143
self.llm = default_llm.with_fallbacks(fallback_llms)
144144

patcher/src/buttercup/patcher/agents/swe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def understand_code_snippet(
352352
)
353353
fallback_llms: list[Runnable] = []
354354
for fb_model in [
355-
ButtercupLLM.CLAUDE_3_7_SONNET,
355+
ButtercupLLM.CLAUDE_4_5_SONNET,
356356
ButtercupLLM.GEMINI_PRO,
357357
]:
358358
fallback_llms.append(create_default_llm_with_temperature(model_name=fb_model.value, **kwargs))

0 commit comments

Comments
 (0)