Skip to content

Commit

Permalink
fix: removed Claude 3 Sonnet
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik committed Jan 23, 2025
1 parent b8b7142 commit d240f94
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ The following models support `POST SERVER_URL/openai/deployments/DEPLOYMENT_NAME
|Claude 3 Opus|claude-3-opus@20240229|(text/image)-to-text||||
|Claude 3.5 Sonnet v2|claude-3-5-sonnet-v2@20241022|(text/image)-to-text||||
|Claude 3.5 Sonnet|claude-3-5-sonnet@20240620|(text/image)-to-text||||
|Claude 3 Sonnet|claude-3-sonnet@20240229|(text/image)-to-text||||
|Claude 3.5 Haiku|claude-3-5-haiku@20241022|text-to-text||||
|Claude 3 Haiku|claude-3-haiku@20240307|(text/image)-to-text||||
|Imagen 2|imagegeneration@005|text-to-image||||
Expand Down
1 change: 0 additions & 1 deletion aidial_adapter_vertexai/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ async def get_chat_completion_model(
| ChatCompletionDeployment.CLAUDE_3_OPUS
| ChatCompletionDeployment.CLAUDE_3_5_SONNET
| ChatCompletionDeployment.CLAUDE_3_HAIKU
| ChatCompletionDeployment.CLAUDE_3_SONNET
):
return await ClaudeChatCompletionAdapter.create(
storage, model_id, deployment, region=upstream_config.region
Expand Down
1 change: 0 additions & 1 deletion aidial_adapter_vertexai/chat/claude/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ async def parse_prompt(
| ChatCompletionDeployment.CLAUDE_3_OPUS
| ChatCompletionDeployment.CLAUDE_3_5_SONNET
| ChatCompletionDeployment.CLAUDE_3_HAIKU
| ChatCompletionDeployment.CLAUDE_3_SONNET
):
return await parse_claude_3_prompt(
self.file_storage, tools, messages, supports_vision=True
Expand Down
2 changes: 0 additions & 2 deletions aidial_adapter_vertexai/deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class ChatCompletionDeployment(str, Enum):
CLAUDE_3_OPUS = "claude-3-opus@20240229"
CLAUDE_3_5_SONNET = "claude-3-5-sonnet@20240620"
CLAUDE_3_HAIKU = "claude-3-haiku@20240307"
CLAUDE_3_SONNET = "claude-3-sonnet@20240229"

def get_model_id(self) -> str:
return self.value
Expand All @@ -41,7 +40,6 @@ def get_model_id(self) -> str:
ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_HAIKU,
ChatCompletionDeployment.CLAUDE_3_SONNET,
]

GeminiDeployment = Literal[
Expand Down
5 changes: 0 additions & 5 deletions tests/integration_tests/test_chat_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def get_id(self):
ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_HAIKU,
# ChatCompletionDeployment.CLAUDE_3_SONNET, # Turn on, not available yet
]


Expand All @@ -119,7 +118,6 @@ def supports_tools(deployment: ChatCompletionDeployment) -> bool:
ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_HAIKU,
ChatCompletionDeployment.CLAUDE_3_SONNET,
]


Expand All @@ -130,7 +128,6 @@ def supports_parallel_tool_calls(deployment: ChatCompletionDeployment) -> bool:
ChatCompletionDeployment.CLAUDE_3_5_HAIKU,
ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_SONNET,
]


Expand All @@ -141,7 +138,6 @@ def supports_tool_call_ids(deployment: ChatCompletionDeployment) -> bool:
ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_HAIKU,
ChatCompletionDeployment.CLAUDE_3_SONNET,
]


Expand Down Expand Up @@ -181,7 +177,6 @@ def is_vision_model(deployment: ChatCompletionDeployment) -> bool:
# ChatCompletionDeployment.CLAUDE_3_OPUS,
ChatCompletionDeployment.CLAUDE_3_5_SONNET,
ChatCompletionDeployment.CLAUDE_3_HAIKU,
ChatCompletionDeployment.CLAUDE_3_SONNET,
]


Expand Down
1 change: 0 additions & 1 deletion tests/unit_tests/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
(ChatCompletionDeployment.CLAUDE_3_OPUS, True, True),
(ChatCompletionDeployment.CLAUDE_3_5_SONNET, True, True),
(ChatCompletionDeployment.CLAUDE_3_HAIKU, True, True),
(ChatCompletionDeployment.CLAUDE_3_SONNET, True, True),
]


Expand Down

0 comments on commit d240f94

Please sign in to comment.