Commit graph

104 commits

Author SHA1 Message Date
Nikita
6dbac0b79e changed claude from 3.5 to 3.7 2025-03-15 13:58:27 +03:00
Nikita
d62b7cea7e prevent AI replying with technical blocks info 2024-12-28 19:57:38 +03:00
Nikita
f97fb9fdf6 added transition for modal to smooth change to fullscreen 2024-12-28 19:57:15 +03:00
Nikita
2616bf0af7 fixed context reset 2024-12-28 16:10:34 +03:00
Nikita
fdb66ffac4 foxed copy response 2024-12-28 16:07:50 +03:00
Nikita
0670dcdb4f Update style.scss 2024-12-28 15:55:40 +03:00
Nikita
54a2a75fbc build 2024-12-28 15:50:14 +03:00
Nikita
6e3b41de08 Update index.js 2024-12-28 15:49:28 +03:00
Nikita
e4df5e290e changed popup and work with contexts
add possibility to provide current page context and selected blocks context
simplified popup by removing suggestions on initial load
simplified popup footer styles and
2024-12-28 15:26:25 +03:00
Nikita
f054220647 simplified preview hack code and styles 2024-12-27 23:26:25 +03:00
Nikita
295ecf6aa5 added hack for preview to prevent preview blinking and jumping 2024-12-27 20:25:00 +03:00
Nikita
e4aefcdaf9 Update class-prompts.php 2024-12-27 20:23:39 +03:00
Nikita
2215ecbce3 simplified prompt and added 2 examples 2024-12-27 16:44:30 +03:00
Nikita
3963936367 Update class-ai-api.php 2024-12-27 16:44:07 +03:00
Nikita
47425107af Update class-ai-api.php 2024-12-27 15:40:48 +03:00
Nikita
e67eca2ee0 added support for Anthropic and it is recommended
move code to work with AI from rest class to separate class
2024-12-27 14:31:22 +03:00
Nikita
1eda5f0e15 improved prompts and move to separate class
added support for OpenAI api error messages
2024-12-27 00:42:38 +03:00
Nikita
1d708eca9d fixed preview properly displaying full and wide sections
remove preview opacity dimm when loading state
2024-12-26 23:16:32 +03:00
Nikita
16e1913121 fixed blocks insertion effect - add blur instead of pink background 2024-12-26 23:15:20 +03:00
Nikita
31f67071d3 fixed press space feature 2024-12-25 16:27:11 +03:00
Nikita
5193cb54b0 fixed displaying error message when request API failed 2024-12-25 11:43:43 +03:00
Nikita
d3b0173dc9 fixed usage of project OpenAI keys 2024-12-25 11:43:25 +03:00
Nikita
1560bdc247 added more blocks to prompt 2024-12-24 01:24:59 +03:00
Nikita
458825e8c6 better selected blocks array 2024-12-24 00:44:02 +03:00
Nikita
fb53b429b9 add more instructions to prompt 2024-12-24 00:43:52 +03:00
Nikita
1255f566b2 fixed wrong toolbar dropdown rendering 2024-12-23 19:02:59 +03:00
Nikita
8db40cc15c Update .gitignore 2024-12-23 19:02:19 +03:00
Nikita
593a72497f hide notices from mind admin pages 2024-12-12 18:10:37 +03:00
Nikita
1e37194365 added possibility to send any blocks as context 2024-12-12 10:36:33 +03:00
Nikita
207b97c6cc fixed some layout styles in preview
change modal to fullscreen when generating blocks
2024-12-12 09:38:45 +03:00
Nikita
b9e35e28ae improve work with gpt and changed model to gpt-4o 2024-12-12 09:38:00 +03:00
Nikita
728c875070 added proper delay to preview render via function throttle
remove batch mode for now to keep code simple
simplified some other parts of code
2024-12-12 00:51:55 +03:00
Nikita
0ce98282ba change our own JSON parser to untruncate-json lib, since it works fast and correctly 2024-12-12 00:18:20 +03:00
Nikita
b2c3fbf927 better handling nested block attributes and innerBlocks 2024-12-11 19:09:05 +03:00
Nikita
cf1d2c7c65 Update index.js 2024-12-11 18:01:44 +03:00
Nikita
df2d7c3759 improve stream blocks rendering on Nginx 2024-12-11 15:45:46 +03:00
Nikita
75e832d3b8 fixed wrong streaming in Nginx. Added ob_flush for good streaming experience
slighlty improved code
2024-12-11 15:35:21 +03:00
Nikita
d04385435a remove cursor animation 2024-12-11 15:34:40 +03:00
Nikita
f80c6ac863 improve chunks rendering with little intervals. Still experimenting and work in progress 2024-12-11 13:19:27 +03:00
Nikita
5e8575cd57 added buffer to PHP to prevent sending small chunks 2024-12-11 13:14:23 +03:00
Nikita
e8a4b8511f changed response scrolling down from JS to pure CSS 2024-12-11 10:27:45 +03:00
Nikita
0aede9a01a improved processor code 2024-12-11 01:31:30 +03:00
Nikita
08d2859f1c proper resize observer 2024-12-10 11:37:08 +03:00
Nikita
7762219ad8 initial commit introducing blocks rendering in AI response 2024-12-10 11:31:49 +03:00
Nikita
14c0b9ea18 v0.2.0 2024-12-09 14:33:25 +03:00
Nikita
8df21ef245 fixed JS error when inserting response to editor 2024-12-09 14:29:44 +03:00
Nikita
bb7b0b6151 added Stream to AI requests 2024-12-09 14:02:26 +03:00
Nikita
3995877b75 improve gitignore and vscode search configs 2024-12-09 13:38:48 +03:00
Nikita
f0270817a2 changed model to gpt-4o-mini 2024-12-09 01:47:00 +03:00
Nikita
be526d4684
Delete .github/FUNDING.yml 2024-12-07 19:50:02 +03:00