diff --git a/litellm/llms/anthropic/files/transformation.py b/litellm/llms/anthropic/files/transformation.py index d8edd51488b..cf157a90f86 100644 --- a/litellm/llms/anthropic/files/transformation.py +++ b/litellm/llms/anthropic/files/transformation.py @@ -132,7 +132,7 @@ class AnthropicFilesConfig(BaseFilesConfig): Anthropic expects: POST /v1/files with multipart form-data - file: the file content - - purpose: "messages" (required) + - purpose: "messages" (defaults to "messages" if not provided) """ file_data = create_file_data.get("file") if file_data is None: