Class OpenAiStreamingLanguageModel

java.lang.Object
dev.langchain4j.model.openai.OpenAiStreamingLanguageModel
All Implemented Interfaces:
StreamingLanguageModel, TokenCountEstimator

public class OpenAiStreamingLanguageModel extends Object implements StreamingLanguageModel, TokenCountEstimator
Represents an OpenAI language model with a completion interface, such as gpt-3.5-turbo-instruct. The model's response is streamed token by token and should be handled with StreamingResponseHandler. However, it's recommended to use OpenAiStreamingChatModel instead, as it offers more advanced features like function calling, multi-turn conversations, etc.