public class OllamaStreamingChatModel extends Object implements StreamingChatLanguageModel
| Constructor and Description |
|---|
OllamaStreamingChatModel(String baseUrl,
String modelName,
Double temperature,
Integer topK,
Double topP,
Double repeatPenalty,
Integer seed,
Integer numPredict,
List<String> stop,
String format,
Duration timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(List<ChatMessage> messages,
StreamingResponseHandler<AiMessage> handler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerate, generate, generatepublic void generate(List<ChatMessage> messages, StreamingResponseHandler<AiMessage> handler)
generate in interface StreamingChatLanguageModelCopyright © 2023. All rights reserved.