Package dev.langchain4j.model.localai
Class LocalAiChatModel
java.lang.Object
dev.langchain4j.model.localai.LocalAiChatModel
- All Implemented Interfaces:
ChatModel
See LocalAI documentation for more details.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
chat
(ChatRequest chatRequest) This is the main API to interact with the chat model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.chat.ChatModel
chat, chat, chat, defaultRequestParameters, doChat, listeners, provider, supportedCapabilities
-
Constructor Details
-
LocalAiChatModel
-
-
Method Details
-
chat
Description copied from interface:ChatModel
This is the main API to interact with the chat model.- Specified by:
chat
in interfaceChatModel
- Parameters:
chatRequest
- aChatRequest
, containing all the inputs to the LLM- Returns:
- a
ChatResponse
, containing all the outputs from the LLM
-
builder
-