ChatCompletionsAsyncClient Class
- java.
lang. Object - com.
azure. ai. inference. ChatCompletionsAsyncClient
- com.
public final class ChatCompletionsAsyncClient
Initializes a new instance of the asynchronous ChatCompletionsClient type.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Mono<Chat |
complete(ChatCompletionsOptions options)
Gets chat completions for the provided chat messages. |
|
Mono<Chat |
complete(String prompt)
Gets completions for the provided input prompt. |
|
Flux<Streaming |
completeStream(ChatCompletionsOptions options)
Gets chat completions for the provided chat messages. |
|
Mono<Model |
getModelInfo()
Returns information about the AI model. |
Methods inherited from java.lang.Object
Method Details
complete
public Mono<ChatCompletions> complete(ChatCompletionsOptions options)
Gets chat completions for the provided chat messages. Completions support a wide variety of tasks and generate text that continues from or "completes" provided prompt data. The method makes a REST API call to the `/chat/completions` route on the given endpoint.
Parameters:
Returns:
complete
public Mono<ChatCompletions> complete(String prompt)
Gets completions for the provided input prompt. Completions support a wide variety of tasks and generate text that continues from or "completes" provided prompt data.
Parameters:
Returns:
completeStream
public Flux<StreamingChatCompletionsUpdate> completeStream(ChatCompletionsOptions options)
Gets chat completions for the provided chat messages. Chat completions support a wide variety of tasks and generate text that continues from or "completes" provided prompt data.
Parameters:
Returns:
getModelInfo
public Mono<ModelInfo> getModelInfo()
Returns information about the AI model. The method makes a REST API call to the `/info` route on the given endpoint.
Returns: