Interface CompletionService
-
- All Implemented Interfaces:
public interface CompletionService
-
-
Method Summary
Modifier and Type Method Description abstract ChatCompletion
create(ChatCompletionCreateParams params, RequestOptions requestOptions)
Creates a model response for the given chat conversation. abstract ChatCompletion
create(ChatCompletionCreateParams params)
Creates a model response for the given chat conversation. abstract StreamResponse<ChatCompletionChunk>
createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
Creates a model response for the given chat conversation. abstract StreamResponse<ChatCompletionChunk>
createStreaming(ChatCompletionCreateParams params)
Creates a model response for the given chat conversation. -
-
Method Detail
-
create
abstract ChatCompletion create(ChatCompletionCreateParams params, RequestOptions requestOptions)
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
-
create
abstract ChatCompletion create(ChatCompletionCreateParams params)
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
-
createStreaming
abstract StreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params, RequestOptions requestOptions)
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
-
createStreaming
abstract StreamResponse<ChatCompletionChunk> createStreaming(ChatCompletionCreateParams params)
Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.
Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, refer to the reasoning guide.
-
-
-
-