{"record":{"id":"9694b0f97eed856c","repo":"BerriAI/litellm","slug":"vector-store-id-is-required-for-initializing-vecto","errorCode":null,"errorMessage":"vector_store_id is required for initializing vector store, got vector_store_id={vector_store_id}","messagePattern":"vector_store_id is required for initializing vector store, got vector_store_id=(.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/vector_stores/vector_store_registry.py","lineNumber":401,"sourceCode":"        if tools:\n            for tool in tools:\n                if \"vector_store_ids\" in tool:\n                    vector_store_ids.extend(tool[\"vector_store_ids\"])\n        return vector_store_ids\n\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            )","sourceCodeStart":383,"sourceCodeEnd":419,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/vector_stores/vector_store_registry.py#L383-L419","documentation":"Config validation while loading vector stores from proxy config.yaml: the litellm_params for a vector store entry lack vector_store_id, so the registry cannot initialize the client. The offending value is echoed.","triggerScenarios":"Thrown at litellm/vector_stores/vector_store_registry.py:401 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid vector_store_id when initializing the vector store.","Check that the id is propagated from the vector store config/registry entry."],"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"}