pub async fn chat(
chat_request: &mut RequestOfModelResponse,
) -> Result<(Either<impl TryStream<Ok = String, Error = LlamaCoreError>, ResponseObject>, bool), LlamaCoreError>Expand description
Processes a chat-completion request and returns either a stream of ChatCompletionChunk instances or a ChatCompletionObject instance.