Class WildFlyGeminiChatModelConfig
java.lang.Object
org.wildfly.extension.ai.injection.chat.WildFlyGeminiChatModelConfig
- All Implemented Interfaces:
WildFlyChatModelConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowCodeExecution(Boolean allowCodeExecution) dev.langchain4j.model.chat.ChatModelcreateLanguageModel(List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners) dev.langchain4j.model.chat.StreamingChatModelcreateStreamingLanguageModel(List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners) enableEnhancedCivicAnswers(Boolean enableEnhancedCivicAnswers) frequencyPenalty(Double frequencyPenalty) includeCodeExecutionOutput(Boolean includeCodeExecutionOutput) includeThoughts(Boolean includeThoughts) booleanbooleanlogRequests(Boolean logRequests) logResponses(Boolean logResponses) maxOutputTokens(Integer maxOutputTokens) presencePenalty(Double presencePenalty) responseLogprobs(Boolean responseLogprobs) returnThinking(Boolean returnThinking) safetySettings(Map<String, String> safetySettingsConfig) setJson(boolean isJson) setObservable(boolean observable) setStreaming(boolean streaming) stopSequences(List<String> stopSequences) temperature(Double temperature) thinkingBudget(Integer thinkingBudget) timeout(long timeOut)
-
Constructor Details
-
WildFlyGeminiChatModelConfig
public WildFlyGeminiChatModelConfig()
-
-
Method Details
-
createLanguageModel
public dev.langchain4j.model.chat.ChatModel createLanguageModel(List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners) - Specified by:
createLanguageModelin interfaceWildFlyChatModelConfig
-
createStreamingLanguageModel
public dev.langchain4j.model.chat.StreamingChatModel createStreamingLanguageModel(List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners) - Specified by:
createStreamingLanguageModelin interfaceWildFlyChatModelConfig
-
allowCodeExecution
-
apiKey
-
enableEnhancedCivicAnswers
-
frequencyPenalty
-
includeCodeExecutionOutput
-
includeThoughts
-
logprobs
-
logRequests
-
logResponses
-
maxOutputTokens
-
modelName
-
presencePenalty
-
responseLogprobs
-
returnThinking
-
safetySettings
-
seed
-
setJson
-
setObservable
-
setStreaming
-
stopSequences
-
temperature
-
thinkingBudget
-
timeout
-
topK
-
topP
-
isStreaming
public boolean isStreaming()- Specified by:
isStreamingin interfaceWildFlyChatModelConfig
-
isObservable
public boolean isObservable()- Specified by:
isObservablein interfaceWildFlyChatModelConfig
-