Update langchain-llama-stack.py

This commit is contained in:
Omar Abdelwahab 2025-09-02 10:30:17 -07:00
parent 4f87a5dd72
commit 9cf73a6bdf

View file

@ -212,7 +212,7 @@ def main():
)
os.environ["OPENAI_API_KEY"] = "dummy"
os.environ["OPENAI_BASE_URL"] = "http://0.0.0.0:8321/v1/openai/v1"
llm = ChatOpenAI(model="ollama/llama3:70b-instruct")
llm = ChatOpenAI(model="ollama/llama3:70b-instruct", base_url="http://localhost:8321/v1/openai/v1")
# Test the wrapper
test_response = llm.invoke("Can you help me with the document processing?")