smartBox.aiAssistantSettings.service.headersObject
The headers to send with the AI service request.
Example - set service headers
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "ProductName" },
{ field: "UnitPrice" }
],
dataSource: {
data: [
{ ProductName: "Tea", UnitPrice: 10 },
{ ProductName: "Coffee", UnitPrice: 15 }
]
},
search: {
fields: [{ name: "ProductName", operator: "contains" }]
},
toolbar: ["smartBox"],
smartBox: {
activeMode: "AIAssistant",
aiAssistantSettings: {
enabled: true,
service: {
url: "https://your-ai-service.com/api/query",
headers: {
"Authorization": "Bearer your-api-key"
}
}
}
}
});
</script>