# Function Call via HuggingFaceLLM

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffunction-call-via-huggingfacellm%2F103348%3E%5C
**Category:** Intermediate\
**Created:** [August 21, 2024, 2:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffunction-call-via-huggingfacellm%2F103348 "2024-08-21T14:10:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aayushk614](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@aayushk614](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Faayushk614)%5C
**Post date:** [August 21, 2024, 2:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffunction-call-via-huggingfacellm%2F103348%2F1 "2024-08-21T14:10:44Z")

</div>

Whenever I load a model via HuggingFaceLLM in llama-index and pass it to a FunctionCallingAgent() as the llm object, I get a error `"Model name {llm.model} does not support function calling API. "`  
I am using llama 3.1 as the llm.

Am I doing something wrong or is the HuggingFaceLLM() class does not somehow exposes the llm.metadata.is\_function\_calling\_model property?

The same gives true for OpenAI class of models.

---

<div class="post-metadata">

**Author:** ![mahmutc](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mahmutc/32/64626_2.png) [@mahmutc](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmahmutc)%5C
**Post date:** [August 22, 2024, 8:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffunction-call-via-huggingfacellm%2F103348%2F2 "2024-08-22T08:00:54Z")

</div>

hi @aayushk614  
is it possible to try one of these models:  
`https://huggingface.co/models?other=function+calling&sort=trending&search=llama-3.1`
