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