{"record":{"id":"0a39ed0ed2b6f417","repo":"BerriAI/litellm","slug":"custom-llm-provider-is-required-for-initializing-v","errorCode":null,"errorMessage":"custom_llm_provider is required for initializing vector store, got custom_llm_provider={custom_llm_provider}","messagePattern":"custom_llm_provider is required for initializing vector store, got custom_llm_provider=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/vector_stores/vector_store_registry.py","lineNumber":406,"sourceCode":"\n    def load_vector_stores_from_config(self, vector_stores_config: list[dict]):\n        \"\"\"\n        Loads vector stores from the litellm proxy config.yaml\n        \"\"\"\n        for vector_store_config in vector_stores_config:\n            # cast to VectorStoreConfig\n            litellm_vector_store_config = LiteLLM_VectorStoreConfig(**vector_store_config)\n            vector_store_name = litellm_vector_store_config.get(\"vector_store_name\")\n            vector_store_litellm_params: dict[str, Any] = litellm_vector_store_config.get(\"litellm_params\") or {}\n\n            vector_store_id = vector_store_litellm_params.get(\"vector_store_id\")\n            if vector_store_id is None:\n                raise ValueError(\n                    f\"vector_store_id is required for initializing vector store, got vector_store_id={vector_store_id}\"\n                )\n            custom_llm_provider = vector_store_litellm_params.get(\"custom_llm_provider\")\n            if custom_llm_provider is None:\n                raise ValueError(\n                    f\"custom_llm_provider is required for initializing vector store, got custom_llm_provider={custom_llm_provider}\"\n                )\n\n            litellm_managed_vector_store = LiteLLM_ManagedVectorStore(\n                vector_store_id=vector_store_id,\n                custom_llm_provider=custom_llm_provider,\n                litellm_params=vector_store_litellm_params,\n                vector_store_name=vector_store_name,\n                vector_store_description=vector_store_litellm_params.get(\"vector_store_description\"),\n                vector_store_metadata=vector_store_litellm_params.get(\"vector_store_metadata\"),\n                created_at=datetime.now(timezone.utc),\n                updated_at=datetime.now(timezone.utc),\n            )\n            self.vector_stores.append(litellm_managed_vector_store)\n\n        verbose_logger.debug(\n            \"all loaded vector stores = %s\",\n            json.dumps(self.vector_stores, indent=4, default=str),","sourceCodeStart":388,"sourceCodeEnd":424,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/vector_stores/vector_store_registry.py#L388-L424","documentation":"Config validation while loading vector stores from config.yaml: custom_llm_provider is missing/None in the entry's litellm_params, so no provider backend can be selected. The offending value is echoed.","triggerScenarios":"Thrown at litellm/vector_stores/vector_store_registry.py:406 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set custom_llm_provider (e.g. 'openai') when initializing the vector store."],"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-14T05:17:10.506Z"}