Interface CompletionServiceAsync.WithRawResponse
-
- All Implemented Interfaces:
public interface CompletionServiceAsync.WithRawResponse
A view of CompletionServiceAsync that provides access to raw HTTP responses for each method.
-
-
Method Summary
Modifier and Type Method Description abstract MessageServiceAsync.WithRawResponse
messages()
abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
create(ChatCompletionCreateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for post /chat/completions
, but is otherwise the same as CompletionServiceAsync.create.abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
create(ChatCompletionCreateParams params)
Returns a raw HTTP response for post /chat/completions
, but is otherwise the same as CompletionServiceAsync.create.abstract CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>>
createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for post /chat/completions
, but is otherwise the same as CompletionServiceAsync.createStreaming.abstract CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>>
createStreaming(ChatCompletionCreateParams params)
Returns a raw HTTP response for post /chat/completions
, but is otherwise the same as CompletionServiceAsync.createStreaming.abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
Returns a raw HTTP response for get /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.retrieve.abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
retrieve(ChatCompletionRetrieveParams params)
Returns a raw HTTP response for get /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.retrieve.abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for post /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.update.abstract CompletableFuture<HttpResponseFor<ChatCompletion>>
update(ChatCompletionUpdateParams params)
Returns a raw HTTP response for post /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.update.abstract CompletableFuture<HttpResponseFor<ChatCompletionDeleted>>
delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
Returns a raw HTTP response for delete /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.delete.abstract CompletableFuture<HttpResponseFor<ChatCompletionDeleted>>
delete(ChatCompletionDeleteParams params)
Returns a raw HTTP response for delete /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.delete.-
-
Method Detail
-
messages
abstract MessageServiceAsync.WithRawResponse messages()
-
create
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> create(ChatCompletionCreateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for
post /chat/completions
, but is otherwise the same as CompletionServiceAsync.create.
-
create
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> create(ChatCompletionCreateParams params)
Returns a raw HTTP response for
post /chat/completions
, but is otherwise the same as CompletionServiceAsync.create.
-
createStreaming
abstract CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for
post /chat/completions
, but is otherwise the same as CompletionServiceAsync.createStreaming.
-
createStreaming
abstract CompletableFuture<HttpResponseFor<StreamResponse<ChatCompletionChunk>>> createStreaming(ChatCompletionCreateParams params)
Returns a raw HTTP response for
post /chat/completions
, but is otherwise the same as CompletionServiceAsync.createStreaming.
-
retrieve
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(ChatCompletionRetrieveParams params, RequestOptions requestOptions)
Returns a raw HTTP response for
get /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.retrieve.
-
retrieve
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> retrieve(ChatCompletionRetrieveParams params)
Returns a raw HTTP response for
get /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.retrieve.
-
update
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> update(ChatCompletionUpdateParams params, RequestOptions requestOptions)
Returns a raw HTTP response for
post /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.update.
-
update
abstract CompletableFuture<HttpResponseFor<ChatCompletion>> update(ChatCompletionUpdateParams params)
Returns a raw HTTP response for
post /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.update.
-
delete
abstract CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(ChatCompletionDeleteParams params, RequestOptions requestOptions)
Returns a raw HTTP response for
delete /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.delete.
-
delete
abstract CompletableFuture<HttpResponseFor<ChatCompletionDeleted>> delete(ChatCompletionDeleteParams params)
Returns a raw HTTP response for
delete /chat/completions/{completion_id}
, but is otherwise the same as CompletionServiceAsync.delete.
-
-
-
-