Relative Content

Tag Archive for large-language-modelhuggingfacepy-langchainmistral-7b

Performing Function Calling with Mistral AI through Hugging Face Endpoint

I am trying to perform function calling using Mistral AI through the Hugging Face endpoint. Mistral AI requires input in a specific string format (assistant: … n user: …). However, the input format provided is not accepted as a list of messages or a prompt value (e.g., ChatPromptTemplate). When using the string format, the output only calls the function without pushing the received content from the tool call back to Mistral AI LLM.