Package dev.langchain4j.model.openai
Class OpenAiChatModel
java.lang.Object
dev.langchain4j.model.openai.OpenAiChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel
Represents an OpenAI language model with a chat completion interface, such as gpt-4o-mini and o3.
You can find description of parameters here.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
dev.langchain4j.model.chat.response.ChatResponse
doChat
(dev.langchain4j.model.chat.request.ChatRequest chatRequest) List
<dev.langchain4j.model.chat.listener.ChatModelListener> dev.langchain4j.model.ModelProvider
provider()
Set
<dev.langchain4j.model.chat.Capability> 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, chat
-
Constructor Details
-
OpenAiChatModel
-
-
Method Details
-
defaultRequestParameters
- Specified by:
defaultRequestParameters
in interfacedev.langchain4j.model.chat.ChatModel
-
supportedCapabilities
- Specified by:
supportedCapabilities
in interfacedev.langchain4j.model.chat.ChatModel
-
doChat
public dev.langchain4j.model.chat.response.ChatResponse doChat(dev.langchain4j.model.chat.request.ChatRequest chatRequest) - Specified by:
doChat
in interfacedev.langchain4j.model.chat.ChatModel
-
listeners
- Specified by:
listeners
in interfacedev.langchain4j.model.chat.ChatModel
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
provider
in interfacedev.langchain4j.model.chat.ChatModel
-
builder
-