Package ai.dat.llm.openai
Class OpenAiStreamingToChatModel
java.lang.Object
ai.dat.llm.openai.OpenAiStreamingToChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel
public class OpenAiStreamingToChatModel
extends Object
implements dev.langchain4j.model.chat.ChatModel
Streaming Chat Model Conversion Non-Streaming Chat Model
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAiStreamingToChatModel(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel) -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.response.ChatResponsechat(dev.langchain4j.model.chat.request.ChatRequest chatRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.ChatModel
chat, chat, chat, defaultRequestParameters, doChat, listeners, provider, supportedCapabilities
-
Constructor Details
-
OpenAiStreamingToChatModel
public OpenAiStreamingToChatModel(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel)
-
-
Method Details
-
chat
public dev.langchain4j.model.chat.response.ChatResponse chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest) - Specified by:
chatin interfacedev.langchain4j.model.chat.ChatModel
-