diff --git a/TelemetryDashboard/Examples/Chat Assistant.json b/TelemetryDashboard/Examples/Chat Assistant.json new file mode 100644 index 00000000..cef2f38b --- /dev/null +++ b/TelemetryDashboard/Examples/Chat Assistant.json @@ -0,0 +1,103 @@ +{ + "header": { + "version": 1 + }, + "widget": { + "x": "3", + "y": "3", + "w": "5", + "h": "9", + "type": "WidgetCustomHTML", + "options": { + "form": { + "components": [ + { + "label": "OpenAI API key", + "key": "key", + "type": "textfield", + "input": true, + "tableView": true, + "id": "epyhzxa", + "placeholder": "", + "prefix": "", + "customClass": "", + "suffix": "", + "multiple": false, + "defaultValue": null, + "protected": false, + "unique": false, + "persistent": true, + "hidden": false, + "clearOnHide": true, + "refreshOn": "", + "redrawOn": "", + "modalEdit": false, + "dataGridLabel": false, + "labelPosition": "top", + "description": "", + "errorLabel": "", + "tooltip": "", + "hideLabel": false, + "tabindex": "", + "disabled": false, + "autofocus": false, + "dbIndex": false, + "customDefaultValue": "", + "calculateValue": "", + "calculateServer": false, + "widget": { + "type": "input" + }, + "attributes": {}, + "validateOn": "change", + "validate": { + "required": false, + "custom": "", + "customPrivate": false, + "strictDateValidation": false, + "multiple": false, + "unique": false, + "minLength": "", + "maxLength": "", + "pattern": "" + }, + "conditional": { + "show": null, + "when": null, + "eq": "" + }, + "overlay": { + "style": "", + "left": "", + "top": "", + "width": "", + "height": "" + }, + "allowCalculateOverride": false, + "encrypted": false, + "showCharCount": false, + "showWordCount": false, + "properties": {}, + "allowMultipleMasks": false, + "addons": [], + "mask": false, + "inputType": "text", + "inputFormat": "plain", + "inputMask": "", + "displayMask": "", + "spellcheck": true, + "truncateMultipleSpaces": false + } + ] + }, + "form_content": { + "key": "" + }, + "about": { + "name": "Chat assistant", + "info": "Chat assistant using open AI api based on the custom HTML widget." + }, + "custom_HTML": "\n\n
\n \n