New to Kendo UI for jQueryStart a free 30-day trial

Ai.service

configuration

The URL of the AI service to use for generating outputs.

ai.service

String|Object
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    service: "/api/llm"
  }
});
</script>

ai.service.data

Object|Function

The data to send with the AI service request.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    service: {
        url: "/api/llm",
        data: {
            "key": "value"
        }
    }
  }
});
</script>
<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>

The headers to send with the AI service request.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    service: {
        url: "/api/llm",
        headers: {
            "Authorization": "Bearer token"
        }
    }
  }
});
</script>

The function to get the output from the AI service response.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    service: {
        url: "/api/llm",
        outputGetter: function(response) {
            return response.output;
        }
    }
  }
});
</script>

The Url of the AI service to use for generating outputs.

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    service: {
      url: "/api/llm"
    }
  }
});
</script>