Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
ConsoleOutputChatTokenHandler.java
Go to the documentation of this file.
1
/*
2
* Ollama4j - Java library for interacting with Ollama server.
3
* Copyright (c) 2025 Amith Koujalgi and contributors.
4
*
5
* Licensed under the MIT License (the "License");
6
* you may not use this file except in compliance with the License.
7
*
8
*/
9
package
io.github.ollama4j.impl;
10
11
import
io.github.ollama4j.models.chat.OllamaChatStreamObserver;
12
13
public
final
class
ConsoleOutputChatTokenHandler
extends
OllamaChatStreamObserver
{
14
public
ConsoleOutputChatTokenHandler
() {
15
setThinkingStreamHandler(
new
ConsoleOutputGenerateTokenHandler
());
16
setResponseStreamHandler(
new
ConsoleOutputGenerateTokenHandler
());
17
}
18
}
io.github.ollama4j.impl.ConsoleOutputChatTokenHandler
Definition
ConsoleOutputChatTokenHandler.java:13
io.github.ollama4j.impl.ConsoleOutputChatTokenHandler.ConsoleOutputChatTokenHandler
ConsoleOutputChatTokenHandler()
Definition
ConsoleOutputChatTokenHandler.java:14
io.github.ollama4j.impl.ConsoleOutputGenerateTokenHandler
Definition
ConsoleOutputGenerateTokenHandler.java:13
io.github.ollama4j.models.chat.OllamaChatStreamObserver
Definition
OllamaChatStreamObserver.java:19
src
main
java
io
github
ollama4j
impl
ConsoleOutputChatTokenHandler.java
Generated by
1.12.0