Python
使用 LangChain Python 集成 Koboldai API LLM。
from langchain_community.llms import KoboldApiLLM
llm = KoboldApiLLM(endpoint="http://192.168.1.144:5000", max_length=80)
response = llm.invoke( "### Instruction:\nWhat is the first book of the bible?\n### Response:" )