Class QianfanClient
java.lang.Object
dev.langchain4j.model.qianfan.client.QianfanClient
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QianfanClient.Builder
builder()
chatCompletion
(ChatCompletionRequest request, String endpoint) completion
(CompletionRequest request, boolean stream, String endpoint) embedding
(EmbeddingRequest request, String serviceName) void
shutdown()
-
Field Details
-
GRANT_TYPE
- See Also:
-
-
Constructor Details
-
QianfanClient
-
-
Method Details
-
shutdown
public void shutdown() -
builder
-
chatCompletion
public SyncOrAsyncOrStreaming<ChatCompletionResponse> chatCompletion(ChatCompletionRequest request, String endpoint) -
completion
public SyncOrAsyncOrStreaming<CompletionResponse> completion(CompletionRequest request, boolean stream, String endpoint) -
embedding
-