From d240f9439e48f73069b5137f7cb116333be935cd Mon Sep 17 00:00:00 2001 From: Anton Dubovik Date: Thu, 23 Jan 2025 12:44:36 +0000 Subject: [PATCH] fix: removed `Claude 3 Sonnet` --- README.md | 1 - aidial_adapter_vertexai/adapters.py | 1 - aidial_adapter_vertexai/chat/claude/adapter.py | 1 - aidial_adapter_vertexai/deployments.py | 2 -- tests/integration_tests/test_chat_completion.py | 5 ----- tests/unit_tests/test_endpoints.py | 1 - 6 files changed, 11 deletions(-) diff --git a/README.md b/README.md index f7e97b4..3c63099 100644 --- a/README.md +++ b/README.md @@ -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|✅|✅|❌| diff --git a/aidial_adapter_vertexai/adapters.py b/aidial_adapter_vertexai/adapters.py index 08e7e7e..fd44624 100644 --- a/aidial_adapter_vertexai/adapters.py +++ b/aidial_adapter_vertexai/adapters.py @@ -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 diff --git a/aidial_adapter_vertexai/chat/claude/adapter.py b/aidial_adapter_vertexai/chat/claude/adapter.py index cc693b4..a580a52 100644 --- a/aidial_adapter_vertexai/chat/claude/adapter.py +++ b/aidial_adapter_vertexai/chat/claude/adapter.py @@ -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 diff --git a/aidial_adapter_vertexai/deployments.py b/aidial_adapter_vertexai/deployments.py index 005b756..93759a6 100644 --- a/aidial_adapter_vertexai/deployments.py +++ b/aidial_adapter_vertexai/deployments.py @@ -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 @@ -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[ diff --git a/tests/integration_tests/test_chat_completion.py b/tests/integration_tests/test_chat_completion.py index 036682e..9eaf47d 100644 --- a/tests/integration_tests/test_chat_completion.py +++ b/tests/integration_tests/test_chat_completion.py @@ -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 ] @@ -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, ] @@ -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, ] @@ -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, ] @@ -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, ] diff --git a/tests/unit_tests/test_endpoints.py b/tests/unit_tests/test_endpoints.py index 585eb24..0186f8c 100644 --- a/tests/unit_tests/test_endpoints.py +++ b/tests/unit_tests/test_endpoints.py @@ -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), ]