set Prompt
Sets the prompt for generation.
Parameters
messages
Array of chat messages
Throws
if the operation fails or model not loaded
Sets the prompt for generation with multimodal support. Automatically detects whether to use text-only or multimodal processing based on the presence of media data.
Parameters
messages
Array of multimodal chat messages
Throws
if the operation fails or model not loaded