# AttributeError: 'InferenceClient' object has no attribute 'post' on HuggingfaceCustomEmbedder
## What happened
Issue agno-agi/agno#3331 (closed, 20 comments): ### Description When attempting to initialize and use HuggingfaceCustomEmbedder, an AttributeError is raised: `AttributeError: 'InferenceClient' object has no attribute 'post'` This error suggests that HuggingfaceCustomEmbedder attempts to call a .post() method on an instance of InferenceClient, which does not exist in the current version of the huggingface_hub package. ### Steps to Reproduce 1. Install dependencies from agno-ai. 2. Set up a valid Hugging Face API token and MongoDB URI. 3. Use the following code to initialize the embedder and vector DB: ``` embedder =...
## What works
[kausmeows (commenter)]: This one is fixed in Agno itself, so first update to the latest agno release (pip install -U agno). The maintainer confirmed the InferenceClient.post AttributeError no longer happens on the current version. Note the remaining error in the thread came from someone using langchain's HuggingFaceHub, not Agno, so if you mix libraries check which one is actually raising.
## Caveats
This comes from one real issue thread (gh:agno-agi/agno#3331); it is the verified fix or approach from that thread, not a general manual. Check your version of Agno first , maintainers often fix the underlying bug in a later release, and the thread may predate it.