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

    Constructors
    Constructor
    Description
    OpenAiStreamingToChatModel(dev.langchain4j.model.chat.StreamingChatModel streamingChatModel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.langchain4j.model.chat.response.ChatResponse
    chat(dev.langchain4j.model.chat.request.ChatRequest chatRequest)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      chat in interface dev.langchain4j.model.chat.ChatModel