public interface ChatService
| Modifier and Type | Method and Description |
|---|---|
ChatCompletionResponse |
asyncChatCompletion(ChatCompletionCreateParams request)
Creates an asynchronous chat completion.
|
ChatCompletionResponse |
createChatCompletion(ChatCompletionCreateParams request)
Creates a chat completion, either streaming or non-streaming based on the request
configuration.
|
QueryModelResultResponse |
retrieveAsyncResult(AsyncResultRetrieveParams request)
Retrieves the result of an asynchronous model operation.
|
ChatCompletionResponse createChatCompletion(ChatCompletionCreateParams request)
request - the chat completion requestChatCompletionResponse asyncChatCompletion(ChatCompletionCreateParams request)
request - the chat completion requestQueryModelResultResponse retrieveAsyncResult(AsyncResultRetrieveParams request)
request - the query request for the async resultCopyright © 2025. All rights reserved.