Skip to content

Commit

Permalink
Refactor to use new Converse API
Browse files Browse the repository at this point in the history
  • Loading branch information
daixba committed Jun 4, 2024
1 parent f0ea117 commit 5f84cef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/api/models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,6 @@ def validate(self, chat_request: ChatRequest):
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,
Expand Down

0 comments on commit 5f84cef

Please sign in to comment.