messages
: The content
in messages
can dynamically use user input, with role
typically set to user
.model
: Enter the model ID based on your needs. For example: deepseek-ai/DeepSeek-R1
or Pro/deepseek-ai/DeepSeek-R1
, following the official documentation.stream
: Set this to true
, as this connector supports streaming responses by default.onMessage
sub-logic, process the response data and display it on the page.