{"record":{"id":"ac2b6e33219b3f6b","repo":"BerriAI/litellm","slug":"vector-store-id-and-custom-llm-provider-are-requir","errorCode":null,"errorMessage":"vector_store_id and custom_llm_provider are required","messagePattern":"vector_store_id and custom_llm_provider are required","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/vector_store_endpoints/management_endpoints.py","lineNumber":538,"sourceCode":"    Create a new vector store.\n\n    Parameters:\n    - vector_store_id: str - Unique identifier for the vector store\n    - custom_llm_provider: str - Provider of the vector store\n    - vector_store_name: Optional[str] - Name of the vector store\n    - vector_store_description: Optional[str] - Description of the vector store\n    - vector_store_metadata: Optional[Dict] - Additional metadata for the vector store\n    \"\"\"\n    await check_feature_access_for_user(user_api_key_dict, \"vector_stores\")\n\n    from litellm.proxy.proxy_server import prisma_client\n\n    try:\n        vector_store_id: Final = vector_store.get(\"vector_store_id\")\n        custom_llm_provider: Final = vector_store.get(\"custom_llm_provider\")\n\n        if not vector_store_id or not custom_llm_provider:\n            raise HTTPException(\n                status_code=400,\n                detail=\"vector_store_id and custom_llm_provider are required\",\n            )\n\n        # Extract and validate metadata\n        metadata: Final = vector_store.get(\"vector_store_metadata\")\n        validated_metadata: dict | None = None\n        if metadata is not None and isinstance(metadata, dict):\n            validated_metadata = metadata\n\n        new_vector_store: Final = await create_vector_store_in_db(\n            vector_store_id=vector_store_id,\n            custom_llm_provider=custom_llm_provider,\n            prisma_client=prisma_client,\n            vector_store_name=vector_store.get(\"vector_store_name\"),\n            vector_store_description=vector_store.get(\"vector_store_description\"),\n            vector_store_metadata=validated_metadata,\n            litellm_params=vector_store.get(\"litellm_params\"),","sourceCodeStart":520,"sourceCodeEnd":556,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/vector_store_endpoints/management_endpoints.py#L520-L556","documentation":"Argument guard in the vector store creation endpoint: vector_store_id and/or custom_llm_provider was not supplied (None), but both are needed to register the store and route it to a provider.","triggerScenarios":"Thrown at litellm/proxy/vector_store_endpoints/management_endpoints.py:538 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include both vector_store_id and custom_llm_provider in the request."],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}