LLM Interface¶
A single Python interface to several LLM providers. Each model is described by one YAML file:
you load the file and call query(). The backend, the connection and the
request parameters all come from the file, so switching model means switching file, not code.
from llm_factory import create_llm
llm = create_llm("conf/gpt52.yaml")
ok, answer = llm.query("Summarise the plot of Hamlet in one sentence.")
Guide
Reference