Skip to content

Commit 3d3e8a1

Browse files
committed
EX-322: llm client fix
1 parent 1b9783b commit 3d3e8a1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/code_review_agent/context_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def determine_context(
1717
) -> ContextRequirements:
1818

1919
client = get_client(llm_config)
20-
model = llm_config.get('models', {}).get('context_builder', 'gpt-5')
20+
model = llm_config.get('models', {}).get('context_builder', 'google/gemini-pro-1.5')
2121

2222
system_prompt = """
2323
You are an expert AI software architect. Your sole task is to determine the MINIMAL SUFFICIENT CONTEXT for a code review.

src/code_review_agent/llm_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_client(llm_config: Dict[str, any]):
1313
"""
1414
load_dotenv(override=True)
1515

16-
provider = llm_config.get("provider", "openai")
16+
provider = llm_config.get("provider", "openrouter")
1717
base_url = llm_config.get("base_url")
1818
if provider == "openrouter" and not base_url:
1919
base_url = "https://openrouter.ai/api/v1"

src/code_review_agent/reviewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def run_review(
7070
) -> Dict[str, ReviewResult]:
7171

7272
client = get_client(llm_config)
73-
model = llm_config.get('models', {}).get('reviewer', 'gpt-5')
73+
model = llm_config.get('models', {}).get('reviewer', 'google/gemini-pro-1.5')
7474

7575
focus_prompt_part = "Your primary focus for this review should be on the following areas: "
7676
focus_prompt_part += ", ".join(focus_areas) + "."

0 commit comments

Comments
 (0)