Uses of Class
org.codelibs.fess.llm.LlmChatRequest
Packages that use LlmChatRequest
Package
Description
-
Uses of LlmChatRequest in org.codelibs.fess.llm
Methods in org.codelibs.fess.llm that return LlmChatRequestModifier and TypeMethodDescriptionLlmChatRequest.addAssistantMessage(String content) Adds an assistant message to the request.LlmChatRequest.addMessage(LlmMessage message) Adds a message to the request.LlmChatRequest.addSystemMessage(String content) Adds a system message to the request.LlmChatRequest.addUserMessage(String content) Adds a user message to the request.protected LlmChatRequestAbstractLlmClient.buildStreamingRequest(org.codelibs.fess.mylasta.direction.FessConfig fessConfig, String userMessage, String context, List<LlmMessage> history) Builds a streaming LLM chat request with conversation history.LlmChatRequest.setMaxTokens(Integer maxTokens) Sets the maximum tokens for the response.Sets the model name.LlmChatRequest.setStream(boolean stream) Sets whether streaming is enabled.LlmChatRequest.setTemperature(Double temperature) Sets the temperature parameter.LlmChatRequest.setThinkingBudget(Integer thinkingBudget) Sets the thinking budget for models that support thinking tokens.Methods in org.codelibs.fess.llm with parameters of type LlmChatRequestModifier and TypeMethodDescriptionprotected voidAbstractLlmClient.addHistory(LlmChatRequest request, List<LlmMessage> history) Adds conversation history to the request.LlmClient.chat(LlmChatRequest request) Performs a chat completion request.LlmClientManager.chat(LlmChatRequest request) Performs a chat completion request using the configured LLM client.voidLlmClient.streamChat(LlmChatRequest request, LlmStreamCallback callback) Performs a streaming chat completion request.voidLlmClientManager.streamChat(LlmChatRequest request, LlmStreamCallback callback) Performs a streaming chat completion request using the configured LLM client. -
Uses of LlmChatRequest in org.codelibs.fess.llm.gemini
Methods in org.codelibs.fess.llm.gemini with parameters of type LlmChatRequestModifier and TypeMethodDescriptionGeminiLlmClient.buildRequestBody(LlmChatRequest request) Builds the request body for the Gemini API.GeminiLlmClient.chat(LlmChatRequest request) protected StringGeminiLlmClient.getModelName(LlmChatRequest request) Gets the model name from the request or config.voidGeminiLlmClient.streamChat(LlmChatRequest request, LlmStreamCallback callback) -
Uses of LlmChatRequest in org.codelibs.fess.llm.ollama
Methods in org.codelibs.fess.llm.ollama with parameters of type LlmChatRequestModifier and TypeMethodDescriptionOllamaLlmClient.buildRequestBody(LlmChatRequest request, boolean stream) Builds the request body for the Ollama API.OllamaLlmClient.chat(LlmChatRequest request) voidOllamaLlmClient.streamChat(LlmChatRequest request, LlmStreamCallback callback) -
Uses of LlmChatRequest in org.codelibs.fess.llm.openai
Methods in org.codelibs.fess.llm.openai with parameters of type LlmChatRequestModifier and TypeMethodDescriptionOpenAiLlmClient.buildRequestBody(LlmChatRequest request, boolean stream) Builds the request body for the OpenAI API.OpenAiLlmClient.chat(LlmChatRequest request) voidOpenAiLlmClient.streamChat(LlmChatRequest request, LlmStreamCallback callback)