{"record":{"id":"dc1383cc8d5e922c","repo":"BerriAI/litellm","slug":"could-not-determine-bedrock-model-id-please-pass","errorCode":null,"errorMessage":"Could not determine Bedrock model ID. Please pass `model` in your request body.","messagePattern":"Could not determine Bedrock model ID\\. Please pass `model` in your request body\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/bedrock/batches/transformation.py","lineNumber":190,"sourceCode":"        output_bucket = litellm_params.get(\"s3_output_bucket_name\") or os.getenv(\"AWS_S3_OUTPUT_BUCKET_NAME\")\n        if not output_bucket:\n            # Use same bucket as input if no output bucket specified\n            output_bucket = input_bucket\n\n        # Get IAM role ARN\n        role_arn: Final = (\n            litellm_params.get(\"aws_batch_role_arn\")\n            or optional_params.get(\"aws_batch_role_arn\")\n            or os.getenv(\"AWS_BATCH_ROLE_ARN\")\n        )\n        if not role_arn:\n            raise ValueError(\n                \"AWS IAM role ARN is required for Bedrock batch jobs. \"\n                \"Set 'aws_batch_role_arn' in litellm_params or AWS_BATCH_ROLE_ARN env var\"\n            )\n\n        if not model:\n            raise ValueError(\"Could not determine Bedrock model ID. Please pass `model` in your request body.\")\n\n        # Generate job name with the correct model ID using common utility\n        job_name: Final = self.common_utils.generate_unique_job_name(model, prefix=\"litellm\")\n        output_key: Final = f\"litellm-batch-outputs/{job_name}/\"\n\n        # Build input data config\n        input_data_config: Final[BedrockInputDataConfig] = {\n            \"s3InputDataConfig\": BedrockS3InputDataConfig(s3Uri=f\"s3://{input_bucket}/{input_key}\")\n        }\n\n        # Build output data config\n        s3_output_config: Final[BedrockS3OutputDataConfig] = BedrockS3OutputDataConfig(\n            s3Uri=f\"s3://{output_bucket}/{output_key}\"\n        )\n\n        # Add optional KMS encryption key ID if provided\n        s3_encryption_key_id = resolve_s3_encryption_key_id(\n            litellm_params=litellm_params,","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/bedrock/batches/transformation.py#L172-L208","documentation":"Error \"Could not determine Bedrock model ID. Please pass `model` in your request body.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/bedrock/batches/transformation.py:190 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass model in the request body so the Bedrock model ID can be determined."],"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"}