alibaba / alibaba/open-code-review

Support Claude on Google Vertex AI

Open
#56 1 comment 3 reactions 1 assignee Claimed by @Devwallem View on GitHub
enhancement good first issue
Dominant language
Go
Stars
24.4k
Forks
1.8k
Avg merge
2d 6h
Merged PRs (30d)
105

Description

### Problem Statement

OCR cannot use Claude over Vertex AI, because the API is a bit different[0].

[0] https://platform.claude.com/docs/en/build-with-claude/claude-on-vertex-ai

### Proposed Solution

Add a OCR_USE_ANTHROPIC_VERTEX=true to use the proper API,

or it can be autodetected using something like:
```go
isVertex := strings.Contains(cfg.URL, "aiplatform.googleapis.com")
```
(not sure about this one)

### Alternatives Considered

_No response_

### Affected Area

CLI / Commands, Review Agent / LLM interaction

### Additional Context

I can work on it, if this feature is desirable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.