Class OpenAiLanguageModel

java.lang.Object
dev.langchain4j.model.openai.OpenAiLanguageModel
All Implemented Interfaces:
LanguageModel, TokenCountEstimator

public class OpenAiLanguageModel extends Object implements LanguageModel, TokenCountEstimator
Represents an OpenAI language model with a completion interface, such as gpt-3.5-turbo-instruct. However, it's recommended to use OpenAiChatModel instead, as it offers more advanced features like function calling, multi-turn conversations, etc.