Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry committed Dec 9, 2024
1 parent f1dce52 commit 447d266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/core/model_runtime/model_providers/anthropic/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,7 @@ def _convert_prompt_messages(self, prompt_messages: Sequence[PromptMessage]) ->
base64_data = data_split[1]
if mime_type != "application/pdf":
raise ValueError(
f"Unsupported document type {mime_type}, "
"only support application/pdf"
f"Unsupported document type {mime_type}, " "only support application/pdf"
)
sub_message_dict = {
"type": "document",
Expand Down

0 comments on commit 447d266

Please sign in to comment.