OpenLLM supports a wide range of open-source LLMs as well as serving users’ own
fine-tuned LLMs. Use openllm model command to see all available models that
are pre-optimized for OpenLLM.
This wrapper supports interacting with OpenLLM’s OpenAI-compatible endpoint.To run a model, do:
Copy
Ask AI
openllm hello
Wrapper usage:
Copy
Ask AI
from langchain_community.llms import OpenLLMllm = OpenLLM(base_url="http://localhost:3000/v1", api_key="na")llm("What is the difference between a duck and a goose? And why there are so many Goose in Canada?")