Closed evalphobia closed 3 months ago
โฑ๏ธ Estimated effort to review [1-5] | 2 |
๐งช Relevant tests | No |
๐ Security concerns | No |
โก Key issues to review | None |
Category | Suggestion | Score |
Best practice |
Use a consistent date format for model identifiers___ **Consider using a consistent date format for the model identifiers to avoid potentialconfusion and errors. The current format mixes different date formats (e.g., @20240307 and @20240229 ).**
[pr_agent/algo/__init__.py [26-28]](https://github.com/Codium-ai/pr-agent/pull/964/files#diff-5923c546f24ec7308a0e43fc84bb6fe40de7bfe2ac6ee842da9578e5dc2c692bR26-R28)
```diff
-'vertex_ai/claude-3-haiku@20240307': 100000,
-'vertex_ai/claude-3-sonnet@20240229': 100000,
-'vertex_ai/claude-3-opus@20240229': 100000,
+'vertex_ai/claude-3-haiku@2024-03-07': 100000,
+'vertex_ai/claude-3-sonnet@2024-02-29': 100000,
+'vertex_ai/claude-3-opus@2024-02-29': 100000,
```
- [ ] **Apply this suggestion**
Suggestion importance[1-10]: 8Why: The suggestion correctly identifies a potential source of confusion due to inconsistent date formats in the model identifiers, which can lead to errors in processing or understanding the data. | 8 |
Pin the
___
**Consider pinning the | 6 | |
Possible issue |
Verify compatibility of the new
___
**Ensure that the | 7 |
Maintainability |
Remove redundant
___
**Remove the redundant | 5 |
Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/b0f9b96c7553ff20250e88c2e4565a223b491306
looks good.
User description
This PR enables to use Claude 3 models (Haiku, Sonnet, Opus) on Vertex AI Model Garden.
Model names and versions are picked from LiteLLM, https://github.com/BerriAI/litellm/blob/4bf33ef26732374668096b9c3b5c77d0a3345c58/docs/my-website/docs/providers/vertex.md#anthropic
Model descriptions (just for ref):
PR Type
enhancement, dependencies
Description
anthropic[vertex]==0.21.3
.litellm
dependency to version1.34.42
.Changes walkthrough ๐
__init__.py
Add support for Claude 3 models on Vertex AI
pr_agent/algo/__init__.py
vertex_ai/claude-3-haiku@20240307
,vertex_ai/claude-3-sonnet@20240229
, andvertex_ai/claude-3-opus@20240229
with a token limit of 100000.requirements.txt
Update dependencies for Anthropic Claude 3 support
requirements.txt
anthropic[vertex]==0.21.3
dependency.litellm
dependency to version1.34.42
.