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.
|
ChatCompletionResponse |
createChatCompletion(ChatCompletionCreateParams request,
Map<String,String> customHeaders)
Creates a chat completion with custom headers support.
|
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 resultChatCompletionResponse createChatCompletion(ChatCompletionCreateParams request, Map<String,String> customHeaders)
request - the chat completion request parameterscustomHeaders - custom HTTP headers to be added to the requestCopyright © 2025. All rights reserved.