From 5f84cef13a0dd45075b2ee65074a3e339bf6109b Mon Sep 17 00:00:00 2001 From: Aiden Dai Date: Tue, 4 Jun 2024 17:01:06 +0800 Subject: [PATCH] Refactor to use new Converse API --- src/api/models/bedrock.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/models/bedrock.py b/src/api/models/bedrock.py index da0f188..0fe25d4 100644 --- a/src/api/models/bedrock.py +++ b/src/api/models/bedrock.py @@ -177,11 +177,6 @@ class BedrockModel(BaseChatModel): tool_call_info = "Tool call with streaming" if chat_request.stream else "Tool call" error = f"{tool_call_info} is currently not supported by {chat_request.model}" - # check if system prompt is supported - # nice to have an error rather than ignore it. - elif not self._is_system_prompt_supported(chat_request.model): - error = f"System message is currently not supported by {chat_request.model}" - if error: raise HTTPException( status_code=400,