From abe0c40c1aabc18c4740844213a2e35aff517c14 Mon Sep 17 00:00:00 2001 From: Chesars Date: Wed, 11 Mar 2026 13:22:39 -0300 Subject: [PATCH] fix: clarify purpose field docstring in AnthropicFilesConfig --- litellm/llms/anthropic/files/transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: