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.
-
Constructor Details
-
LocalAiChatModel
@Deprecated(forRemoval=true, since="1.5.0") public LocalAiChatModel(String baseUrl, String modelName, Double temperature, Double topP, Integer maxTokens, Duration timeout, Integer maxRetries, Boolean logRequests, Boolean logResponses) Deprecated, for removal: This API element is subject to removal in a future version. -
LocalAiChatModel
-
-
Method Details
-
chat
Description copied from interface:ChatModelThis is the main API to interact with the chat model.- Specified by:
chatin interfaceChatModel- Parameters:
chatRequest- aChatRequest, containing all the inputs to the LLM- Returns:
- a
ChatResponse, containing all the outputs from the LLM
-
builder
-