From 6df54d1ef638674f9ae92472bd9c5a30efc8727c Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 23 Aug 2024 18:08:50 +0200 Subject: [PATCH] AI generation for notes (#1112) * feat: ai generation for notes * feat - ai generation -default to gpt-4o-mini * feat - ai generation - change update text * feat - ai generation - improve prompt --------- Co-authored-by: Azgaar --- icons.css | 2 +- index.html | 30 ++++++++++++- modules/ui/ai-generator.js | 87 ++++++++++++++++++++++++++++++++++++++ modules/ui/notes-editor.js | 20 +++++++++ versioning.js | 4 +- 5 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 modules/ui/ai-generator.js diff --git a/icons.css b/icons.css index ae40ee00..4740f091 100644 --- a/icons.css +++ b/icons.css @@ -253,7 +253,7 @@ .icon-coa:before {content:'\f3ed'; font-size: .9em; color: #999;} /* '' */ .icon-half:before {font-weight: bold;content:'½';} .icon-voice:before {content:'🔊';} - +.icon-robot:before {content:'🤖';} .icon-die:before {content:'🎲';} .icon-button-die:before {content:'🎲'; padding-right: .4em;} .icon-button-power:before {content:'💪'; padding-right: .6em;} diff --git a/index.html b/index.html index 9cd182ac..8dd366ce 100644 --- a/index.html +++ b/index.html @@ -4921,6 +4921,7 @@
+
+ +