Me too going with the same error
AttributeError: âInferenceClientâ object has no attribute âpostâ
the code snippet is shared below
from langchain import HuggingFaceHub, LLMChain
from langchain.prompts import PromptTemplate
os.environ[âHF_TOKENâ] = âmy_tokenâ
llm=HuggingFaceHub(repo_id=âmistralai/Mistral-7B-Instruct-v0.2â)
prompt = PromptTemplate(
input_variables=[âproductâ],
template=âWhat is the best name for startup of {product}?â
)
chain= LLMChain(prompt=prompt,llm=llm,verbose=True)
print(chain.run(âcameraâ))