391 Commits

Author SHA1 Message Date
Sean Yang
6ec588fda6 Force re-render of text fields on Extend 2023-11-28 20:32:27 -05:00
Sean Yang
26ff56ebb3 Fix bug where LLM was returning templates in generate and replace where none was requested 2023-11-15 17:31:55 -05:00
Sean Yang
7c9cdfde59 Calculate whether to refresh suggestions based on expected suggestions instead of previous suggestions 2023-11-15 17:26:00 -05:00
Sean Yang
9c07e5049a Cache rendering of text fields to avoid expensive computation 2023-11-15 17:14:31 -05:00
Sean Yang
dc185842b2 Make placeholder logic more readable 2023-11-15 17:02:42 -05:00
Sean Yang
0b42eda649 Make placeholders stick to their assigned text field without using defaultdict 2023-11-15 16:36:31 -05:00
Sean Yang
cbcad1acf2 Consider null values as nonexistant in defaultdict 2023-11-15 16:35:57 -05:00
Sean Yang
c37adbbb7e Create a defaultdict utility 2023-11-15 13:31:48 -05:00
Sean Yang
35116539af Reduce min rows to extend to 1 and add warning below 2 2023-11-15 01:22:34 -05:00
Sean Yang
34c98dea95 Reduce minimum rows required to 1 for autocomplete to begin generating 2023-11-15 00:25:11 -05:00
Sean Yang
07e3479a43 Log the system message 2023-11-15 00:24:13 -05:00
Sean Yang
c0709f4265 Update prompts to strengthen AI support for multiple template variables 2023-11-15 00:20:29 -05:00
Sean Yang
7b207aa42f Escape the braces of generate and replace prompts 2023-11-15 00:09:02 -05:00
Sean Yang
e02b58265c Handle template variables with Extend and Autocomplete + Check template variable correctness in outputs 2023-11-15 00:04:38 -05:00
Sean Yang
974fc5a104 Fix typo in AiPopover import 2023-11-14 23:08:43 -05:00
Ian Arawjo
d474b496c3 Convert Jinja braces 2023-11-14 10:03:46 -05:00
Ian Arawjo
c1ef60c2bb Add AI Support Tab in Global Settings pane. 2023-11-12 21:07:11 -05:00
Ian Arawjo
b1553ce7da trim quotation marks and escape braces in AI autofill 2023-11-12 11:24:47 -05:00
Ian Arawjo
a3a7b9287d Add no_cache flag support in backend to ignore cache for AI popover 2023-11-12 10:49:49 -05:00
Ian Arawjo
f5e49fbca9 Parse markdown using markdown library 2023-11-12 10:26:27 -05:00
Ian Arawjo
f46fece290 Minor refactoring and styling fixes 2023-11-12 09:37:45 -05:00
Sean Yang
b0ecb58aa3 Refactor the autofill functionality into two backend files 2023-11-11 19:42:50 -05:00
Sean Yang
c6d916ed09 Refactor the AI Popover into a new component 2023-11-10 14:56:06 -05:00
Sean Yang
ecec0ee92c Refactor the AI Popover into a new component 2023-11-10 13:20:33 -05:00
Sean Yang
ed005d2774 Merge branch 'ai_for_cf' of https://github.com/ianarawjo/ChainForge into ai_for_cf 2023-11-09 17:10:50 -05:00
Sean Yang
9fa27b5e96 Fix typo with semicolon 2023-11-09 17:08:44 -05:00
Sean Yang
f4f9022725 Improve autofill prompt to handle commands 2023-11-09 17:08:44 -05:00
Sean Yang
9192a574ec Finally fix autofill's debouncing 2023-11-09 17:08:44 -05:00
Sean Yang
eecb3731b6 TEMP: disable autofill 2023-11-09 17:08:44 -05:00
Sean Yang
578deb0161 TEMP: try to fix autofill 2023-11-09 17:08:44 -05:00
Sean Yang
5ce43ffa76 Fix bug in error handling 2023-11-09 17:08:44 -05:00
Sean Yang
962626146f Limit output to n in decode() 2023-11-09 17:08:44 -05:00
Sean Yang
77deaa2fff Change 'pattern' to 'generate a list of' and fix a bug where i forgot to specify unordered markdown list 2023-11-09 17:08:44 -05:00
Sean Yang
b35a977fb3 Remove 'suggestions loading' message 2023-11-09 17:08:44 -05:00
Sean Yang
3d6d61e00d Improve prompt prompt 2023-11-09 17:08:44 -05:00
Sean Yang
58445fe50e Add error handling to AI system 2023-11-09 17:08:33 -05:00
Sean Yang
d53960ac61 Change to markdown 2023-11-09 17:08:33 -05:00
Sean Yang
1c6cef8ead Add a clarifying sentence to the prompt when the user asks for a prompt 2023-11-09 17:08:01 -05:00
Sean Yang
14c6400619 Cosmetic changes 2023-11-09 17:08:01 -05:00
Sean Yang
969a40aa58 Use sparkle icon 2023-11-09 17:08:01 -05:00
Sean Yang
90a1029499 Cosmetic changes 2023-11-09 17:08:01 -05:00
Sean Yang
0eb4820bfd Add loading states 2023-11-09 17:08:01 -05:00
Sean Yang
a41c122e2f Fix generate and replace 2023-11-09 17:08:01 -05:00
Sean Yang
146ef26e29 Change creative to unconventional in generate and replace system 2023-11-09 17:08:01 -05:00
Sean Yang
b559b78410 Call backend for generate and replace 2023-11-09 17:08:01 -05:00
Sean Yang
bdb6839383 Generate and replace UI 2023-11-09 17:08:01 -05:00
Sean Yang
3d8736e24d Add 'creative' toggle to generateAndReplace 2023-11-09 17:08:01 -05:00
Sean Yang
16839522c5 Move command fill UI to purple button popover 2023-11-09 17:08:01 -05:00
Sean Yang
ab01a34e31 Cosmetic changes to AI popover 2023-11-09 17:08:01 -05:00
Sean Yang
960769aeb4 Add tabs to ai popover 2023-11-09 17:08:01 -05:00