Class OpenAiClient
java.lang.Object
dev.langchain4j.model.openai.internal.OpenAiClient
- Direct Known Subclasses:
DefaultOpenAiClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
OpenAiClient.Builder<T extends OpenAiClient,
B extends OpenAiClient.Builder<T, B>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenAiClient.Builder
builder()
abstract SyncOrAsyncOrStreaming
<ChatCompletionResponse> chatCompletion
(ChatCompletionRequest request) abstract SyncOrAsyncOrStreaming
<CompletionResponse> completion
(CompletionRequest request) abstract SyncOrAsync
<EmbeddingResponse> embedding
(EmbeddingRequest request) abstract SyncOrAsync
<GenerateImagesResponse> imagesGeneration
(GenerateImagesRequest request) abstract SyncOrAsync
<ModerationResponse> moderation
(ModerationRequest request)
-
Constructor Details
-
Method Details
-
completion
-
chatCompletion
public abstract SyncOrAsyncOrStreaming<ChatCompletionResponse> chatCompletion(ChatCompletionRequest request) -
embedding
-
moderation
-
imagesGeneration
-
builder
-