provideLanguageModelChatResponse
abstract fun provideLanguageModelChatResponse(model: T, messages: ReadonlyArray<LanguageModelChatRequestMessage>, options: ProvideLanguageModelChatResponseOptions, progress: Progress<LanguageModelResponsePart>, token: CancellationToken): PromiseLike<Void?>(source)
Returns the response for a chat request, passing the results to the progress callback. The {@linkcode LanguageModelChatProvider} must emit the response parts to the progress callback as they are received from the language model.
Parameters
model
The language model to use
messages
The messages to include in the request
options
Options for the request
progress
The progress to emit the streamed response chunks to
token
A cancellation token