Package com.anthropic.services.async
Class CompletionServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.async.CompletionServiceAsync
public final class CompletionServiceAsyncImpl implements CompletionServiceAsync
-
-
Method Summary
Modifier and Type Method Description CompletableFuture<Completion>create(CompletionCreateParams params, RequestOptions requestOptions)Legacy Create a Text Completion. AsyncStreamResponse<Completion>createStreaming(CompletionCreateParams params, RequestOptions requestOptions)Legacy Create a Text Completion. -
-
Method Detail
-
create
CompletableFuture<Completion> create(CompletionCreateParams params, RequestOptions requestOptions)
Legacy Create a Text Completion.
The Text Completions API is a legacy API. We recommend using the Messages API going forward.
Future models and features will not be compatible with Text Completions. See our migration guide for guidance in migrating from Text Completions to Messages.
-
createStreaming
AsyncStreamResponse<Completion> createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
Legacy Create a Text Completion.
The Text Completions API is a legacy API. We recommend using the Messages API going forward.
Future models and features will not be compatible with Text Completions. See our migration guide for guidance in migrating from Text Completions to Messages.
-
-
-
-