mirror of
https://github.com/langchain-ai/langchain-llama-stack.git
synced 2026-07-25 21:15:23 -04:00
main
Fix vulnerable Dependabot dependencies
langchain-llamastack
This package contains the LangChain integration with Llama Stack.
Installation
pip install -U langchain-llamastack
If your Llama Stack distribution requires credentials, use the LLAMA_STACK_API_KEY environment variable.
If your Llama Stack distribution server is not running on http://localhost:8321, use the LLAMA_STACK_BASE_URL environment variable or base_url param.
Chat Models
ChatLlamaStack class exposes chat models hosted on your Llama Stack distribution server.
from langchain_llamastack import ChatLlamaStack
llm = ChatLlamaStack(model="meta/llama-3.1-8b-instruct")
llm.invoke("Sing a ballad of LangChain.")
Releases
6
Languages
Python
95.7%
Makefile
3.6%
Shell
0.7%