Class LmStudioChatClientImpl
java.lang.Object
fr.tiogars.chat.domains.prompt.services.LmStudioChatClientImpl
- All Implemented Interfaces:
ChatClientAdapter
Implementation of ChatClientAdapter for LMStudio.
This uses direct HTTP calls to LMStudio's API until Spring AI is available.
Connection settings are persisted by the dedicated LM Studio domain.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LmStudioChatClientImpl
-
-
Method Details
-
call
Description copied from interface:ChatClientAdapterSend a prompt to the AI and get a response.- Specified by:
callin interfaceChatClientAdapter- Parameters:
prompt- the user prompt- Returns:
- the AI response
-
call
Description copied from interface:ChatClientAdapterSend a prompt with system message to the AI and get a response.- Specified by:
callin interfaceChatClientAdapter- Parameters:
systemPrompt- the system promptuserPrompt- the user prompt- Returns:
- the AI response
-