{"record":{"id":"526b4da7c70ea249","repo":"BerriAI/litellm","slug":"bedrockfilesconfig-does-not-support-file-retrieval","errorCode":null,"errorMessage":"BedrockFilesConfig does not support file retrieval","messagePattern":"BedrockFilesConfig does not support file retrieval","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/bedrock/files/transformation.py","lineNumber":1117,"sourceCode":"            purpose=\"batch\",  # Default purpose for Bedrock files\n            id=file_id,\n            filename=filename,\n            created_at=int(time.time()),  # Current timestamp\n            status=\"uploaded\",\n            bytes=int(content_length) if content_length.isdigit() else 0,\n            object=\"file\",\n        )\n\n    def get_error_class(self, error_message: str, status_code: int, headers: dict | Headers) -> BaseLLMException:\n        return BedrockError(status_code=status_code, message=error_message, headers=headers)\n\n    def transform_retrieve_file_request(\n        self,\n        file_id: str,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> tuple[str, dict]:\n        raise NotImplementedError(\"BedrockFilesConfig does not support file retrieval\")\n\n    def transform_retrieve_file_response(\n        self,\n        raw_response: httpx.Response,\n        logging_obj: LiteLLMLoggingObj,\n        litellm_params: dict,\n    ) -> OpenAIFileObject:\n        raise NotImplementedError(\"BedrockFilesConfig does not support file retrieval\")\n\n    def transform_delete_file_request(\n        self,\n        file_id: str,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> tuple[str, dict]:\n        raise NotImplementedError(\"BedrockFilesConfig does not support file deletion\")\n\n    def transform_delete_file_response(","sourceCodeStart":1099,"sourceCodeEnd":1135,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/bedrock/files/transformation.py#L1099-L1135","documentation":"Error \"BedrockFilesConfig does not support file retrieval\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/bedrock/files/transformation.py:1117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Bedrock files do not support retrieval; download from S3 directly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}