Initializing LangBear client
Using environment variable
SetLANGBEAR_ENDPOINT environment variable to the endpoint of LangBear server.
Using parameters
Pass the endpoint toend_point parameter.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Initialize LangBear client to start using it.
LANGBEAR_ENDPOINT environment variable to the endpoint of LangBear server.
from langbear import LangBear
lb = LangBear()
TBD;
end_point parameter.
from langbear import LangBear
lb = LangBear(end_point="http://localhost:3030")
TBD;
# LLM
llm = OpenAI(temperature=0.5, callbacks=[lb.callback_handler])
# Chat
chat_llm = ChatOpenAI(temperature=0.5, callbacks=[lb.callback_handler])