Package com.anthropic.services.blocking
Interface CompletionService
-
- All Implemented Interfaces:
public interface CompletionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceCompletionService.WithRawResponseA view of CompletionService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract CompletionService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. Completioncreate(CompletionCreateParams params)Legacy Create a Text Completion. abstract Completioncreate(CompletionCreateParams params, RequestOptions requestOptions)StreamResponse<Completion>createStreaming(CompletionCreateParams params)Legacy Create a Text Completion. abstract StreamResponse<Completion>createStreaming(CompletionCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract CompletionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
Completion create(CompletionCreateParams params)
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.
-
create
abstract Completion create(CompletionCreateParams params, RequestOptions requestOptions)
-
createStreaming
@MustBeClosed() StreamResponse<Completion> createStreaming(CompletionCreateParams params)
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
@MustBeClosed() abstract StreamResponse<Completion> createStreaming(CompletionCreateParams params, RequestOptions requestOptions)
-
-
-
-