{"record":{"id":"51fd0ff09a7e805b","repo":"BerriAI/litellm","slug":"oci-embedtext-accepts-at-most-oci-embed-batch-lim","errorCode":null,"errorMessage":"OCI embedText accepts at most {OCI_EMBED_BATCH_LIMIT} inputs per request (got {len(texts)}). Batch your requests.","messagePattern":"OCI embedText accepts at most (.+?) inputs per request \\(got (.+?)\\)\\. Batch your requests\\.","errorType":"exception","errorClass":"OCIError","httpStatus":400,"severity":"error","filePath":"litellm/llms/oci/embed/transformation.py","lineNumber":212,"sourceCode":"        if isinstance(input, str):\n            texts = [input]\n        elif isinstance(input, list):\n            texts = []\n            for item in input:\n                if isinstance(item, list):\n                    raise OCIError(\n                        status_code=400,\n                        message=(\n                            \"OCI embedText does not support token-array inputs. \"\n                            \"Convert token lists to strings before calling embedding().\"\n                        ),\n                    )\n                texts.append(item if isinstance(item, str) else str(item))\n        else:\n            texts = [str(input)]\n\n        if len(texts) > OCI_EMBED_BATCH_LIMIT:\n            raise OCIError(\n                status_code=400,\n                message=(\n                    f\"OCI embedText accepts at most {OCI_EMBED_BATCH_LIMIT} inputs per request \"\n                    f\"(got {len(texts)}). Batch your requests.\"\n                ),\n            )\n\n        serving_mode_type: Final = optional_params.get(\"oci_serving_mode\", \"ON_DEMAND\").upper()\n        if serving_mode_type not in {\"ON_DEMAND\", \"DEDICATED\"}:\n            raise OCIError(\n                status_code=400,\n                message=\"oci_serving_mode must be 'ON_DEMAND' or 'DEDICATED'.\",\n            )\n\n        if serving_mode_type == \"DEDICATED\":\n            endpoint_id: Final = optional_params.get(\"oci_endpoint_id\", model)\n            serving_mode = OCIServingMode(servingType=\"DEDICATED\", endpointId=endpoint_id)\n        else:","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/oci/embed/transformation.py#L194-L230","documentation":"Error \"OCI embedText accepts at most {OCI_EMBED_BATCH_LIMIT} inputs per request (got {len(texts)}). Batch your requests.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/oci/embed/transformation.py:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Split the input into batches of at most the limit shown in the message and issue multiple embedding requests."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}