mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(vertex_ai_anthropic.py): fix import
This commit is contained in:
parent
54e4326a92
commit
00c0a0c209
2 changed files with 4 additions and 1 deletions
|
@ -148,6 +148,7 @@ def completion(
|
|||
):
|
||||
try:
|
||||
import vertexai
|
||||
from anthropic import AnthropicVertex
|
||||
except:
|
||||
raise VertexAIError(
|
||||
status_code=400,
|
||||
|
@ -162,7 +163,6 @@ def completion(
|
|||
message="""Upgrade vertex ai. Run `pip install "google-cloud-aiplatform>=1.38"`""",
|
||||
)
|
||||
try:
|
||||
from anthropic import AnthropicVertex
|
||||
|
||||
## Load Config
|
||||
config = litellm.VertexAIAnthropicConfig.get_config()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue