ai.service.dataObject|Function
The data to send with the AI service request.
Example
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
ai: {
service: {
url: "/api/llm",
data: {
"key": "value"
}
}
}
});
</script>
Example
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
ai: {
service: {
url: "/api/llm",
data: function(prompt, isRetry, history) {
return {
"messages": [{
type: messageTypes.user,
text: prompt
}],
"key": "value"
}
}
}
}
});
</script>
In this article