Open Lester-Tai opened 10 months ago
Supports Stream, but there is no callback.
public class StreamOpenAIExample {
public static void main(String[] args) {
var llm = OpenAI.builder()
.maxTokens(1000)
.temperature(0)
.requestTimeout(120)
.build()
.init();
var result = llm.asyncPredict("Introduce West Lake in Hangzhou, China.");
result.doOnNext(System.out::print).blockLast();
}
}
All right, thx for your response. Will you implement the callback in the future?
Yes, I will
Hello, i enable the stream and it's not work. And i can't find the implementation of callback. Are you conduct it?