Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions codebase_rag/tools/document_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def __init__(self, project_root: str) -> None:
if orchestrator_provider == cs.Provider.GOOGLE:
if orchestrator_config.provider_type == cs.GoogleProviderType.VERTEX:
self.client = genai.Client(
vertexai=True,
credentials=orchestrator_config.service_account_file,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent credentials handling with providers/base.py:74-81. The provider implementation converts the service account file path to a credentials object using service_account.Credentials.from_service_account_file(), but this passes the file path string directly. Consider aligning the approach for consistency.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Prompt To Fix With AI
This is a comment left during a code review.
Path: codebase_rag/tools/document_analyzer.py
Line: 39

Comment:
Inconsistent credentials handling with `providers/base.py:74-81`. The provider implementation converts the service account file path to a credentials object using `service_account.Credentials.from_service_account_file()`, but this passes the file path string directly. Consider aligning the approach for consistency.

<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>

How can I resolve this? If you propose a fix, please make it concise.

project=orchestrator_config.project_id,
location=orchestrator_config.region,
)
Expand Down