Commit graph

770 commits

Author SHA1 Message Date
mic
59ec47b2e8 fetchModels ouput are only the gpt- models ordered by id desc 2024-07-22 23:35:54 +02:00
mic
c538388279 added countTokensUsingAPI method 2024-07-21 21:01:54 +02:00
mic
37ec6ca76a handling error messages from the ChatGPT API 2024-07-21 16:49:36 +02:00
mic
ee2540a8c8 correctly using openai api class in the webworker 2024-07-21 15:25:07 +02:00
mic
e81dbf3d72 added a first version of the OpenAI API class 2024-07-20 23:06:38 +02:00
mic
c02558be9e Added a warning message closing the Custom Prompts page with unsaved changes.fixes #88 2024-07-20 00:02:39 +02:00
mic
eaa1668eae improved the "same language" statement. 2024-07-19 22:18:30 +02:00
mic
7aeb92e6e3 using the define_response_lang property. fixes #86 2024-07-19 22:17:59 +02:00
mic
efb4c61b6b define_response_lang properties added to default prompts. see #86 2024-07-19 21:54:19 +02:00
mic
7323a9fe6f fixed the plain text import. fixes #87 2024-07-19 21:50:11 +02:00
mic
011076d96b fixed getting response in plaintext. see #87 2024-07-19 21:30:12 +02:00
mic
dc2f581c7e showing the current prompt name in the chatgpt window. fixes #20 2024-07-16 22:50:00 +02:00
mic
e899d76f69 i18nConditionalGet method added. see #20 2024-07-16 22:42:39 +02:00
mic
29f6c07229 sorting prompts on import. see #65 2024-07-16 18:21:22 +02:00
mic
b15616b5d7 deleting idnum property on export. see #65 2024-07-16 18:18:47 +02:00
mic
47dbf0c808 method preparePromptsForImport added. see #65 2024-07-16 00:11:21 +02:00
mic
bca4640cf5 using the current lang when translating if no lang is set. see #53. to be improved in #6 2024-07-15 00:00:38 +02:00
mic
81ae49ba23 the default lang is set to empty string to use the used in the email. fixes #53 2024-07-14 23:54:46 +02:00
mic
4d9329ae22 we need also the id in the preparePromptsForExport method 2024-07-14 23:23:08 +02:00
mic
7c35a33a1c added preparePromptsForExport method 2024-07-14 23:21:08 +02:00
mic
49d52abac8 correctly working with plain text response. really fixing #77 2024-06-27 21:18:00 +02:00
Mic
141e236923 using chatgpt_keep_formatting. fixes #77 2024-06-27 18:27:41 +02:00
mic
7f0a50be42 correctly preservig formatting. see #70 2024-06-26 22:22:57 +02:00
mic
d71301f9e1 working on fixing #70 2024-06-25 22:59:28 +02:00
mic
caa2f0603c keeping the format from the chatgpt response. see #70 2024-06-19 21:51:44 +02:00
mic
f43200370e iteration only on first level childNodes 2024-06-18 23:41:53 +02:00
mic
129b2998fc insertText renamed to insertHtml is now inserting Html elements instead of plain text 2024-06-18 23:07:57 +02:00
mic
8b01b2fa7f removed debug console.log 2024-06-18 22:08:16 +02:00
mic
2e076d7b7b removed makeParagraphs, using an html string directly 2024-06-18 21:57:01 +02:00
mic
0daeded711 chatgpt_getFromDOM returns an HTML string for the last answer 2024-06-18 21:56:34 +02:00
mic
639fe495a7 replying to the right message. fixes #71 2024-06-18 21:08:03 +02:00
mic
2e6fa9f86a comment translated in english 2024-06-18 20:03:10 +02:00
mic
6cdfd1489f micz.it url link typo fixed 2024-05-28 18:44:32 +02:00
mic
feaba4d4e4 using more textContent instead of innerHTML 2024-05-23 20:32:58 +02:00
mic
2a21e18d61 using textContent instead of innerHTML for CSS as for ATN reviewer suggestion 2024-05-22 21:17:30 +02:00
Mic
1cae90b843
Merge branch 'main' into new_1.1 2024-05-21 21:24:40 +02:00
mic
e09a25b4ef imported all fixes from main. fixes #55 2024-05-17 23:05:19 +02:00
mic
83f570feaa log desc improved. fixes #63 2024-05-17 22:46:11 +02:00
mic
2af0816f66 send button query improved. ported from 1.0.10 2024-05-17 19:10:58 +02:00
mic
016779faf8 polished send button query 2024-05-17 19:02:47 +02:00
mic
f66055b0c5 using the new endpoint chatgpt.com 2024-05-17 19:00:38 +02:00
mic
d527c8d187 commented out some debug console.log statement 2024-05-16 22:33:18 +02:00
mic
b685010ca7 Improved handling of different versions of the ChatGPT web interface 2024-05-16 22:18:42 +02:00
Mic
e9cb2fedeb ordering prompts in the menu: first the default prompts, then the custom in alphabetical order by "name" 2024-05-15 23:18:47 +02:00
Mic
1a10382053 better var naming 2024-05-15 23:12:32 +02:00
Mic
e256131d82 fixed a typo in a comment 2024-05-15 23:02:00 +02:00
Mic
fc14199a48 chatgpt url updated 2024-05-15 22:55:21 +02:00
Mic
e27b1675e7 added messges for sendbutton or textarea not found. fixes #58 #59 #61 2024-05-15 22:40:41 +02:00
Mic
5229eab6fe ported v108 fixes 2024-05-15 22:13:19 +02:00
Mic
dfe3fd98f6 using the right action button. fixes #56 2024-05-15 22:10:34 +02:00
Mic
86d8c5044a stripping ChatGPT in front of the response. Fixes #60 2024-05-15 19:22:45 +02:00
Mic
9b7f46c8b0 send button query fixed 2024-05-15 19:21:41 +02:00
Mic
a19bc59a2c handling model 4o. fixes #62 2024-05-15 19:20:46 +02:00
mic
7ae17e29a5 Imported .diff from v105 to v106 2024-05-14 18:39:12 +02:00
mic
6818414184 fixed correct reloading of the listener. see #12 2024-05-14 17:48:40 +02:00
mic
e2c99e5b3e better handling of default prompt in case of future new prompts added. see #12 2024-05-14 17:48:01 +02:00
mic
cd4c08739b resolver error in reloading menus. fixes #51 2024-05-14 08:26:42 +02:00
mic
5ee8280e3e trying to fix the error in reloading menu 2024-05-13 23:18:50 +02:00
mic
102e613fc8 removed some console.log dumps 2024-05-13 21:59:01 +02:00
mic
58ddddb241 forcing to string before checking 0/1 properties 2024-05-13 21:57:29 +02:00
mic
5122edadac excluding disabled prompts. related to #12 2024-05-13 21:53:32 +02:00
mic
a3b34b7dbf "Unknown localization message" error fixed. correctly using "name" in the prompts menu. related to #12 2024-05-13 21:47:04 +02:00
mic
86801cacf5 force String in switch properties triage 2024-05-13 20:28:12 +02:00
mic
9fd14b1276 correctly loading menus 2024-05-13 20:26:58 +02:00
mic
b19349a0de all values are strings 2024-05-12 23:35:28 +02:00
mic
6136e0a056 saving and loasding defaultPrompts user properties 2024-05-12 22:01:31 +02:00
mic
2cab415dc9 added position_compose and position_display to handle the position in the two menus 2024-05-12 16:38:31 +02:00
mic
f459cf72e8 added btns and new form. still work in progress. #12 2024-05-10 23:21:40 +02:00
mic
5c2e7a63f6 moved onctext definitions in mzta-utils.js 2024-05-10 22:15:00 +02:00
mic
0b62350138 added temporary export to test in browser 2024-05-10 22:09:37 +02:00
mic
f538bbe38d added prompts sorting 2024-05-10 22:00:05 +02:00
mic
27988f14b0 Keeping the signature even if it's above the quote. Fixes #45 2024-05-09 21:38:35 +02:00
mic
25b406d4b7 reply prompt improved 2024-05-09 21:31:51 +02:00
mic
f1033fc517 improved reply prompt 2024-05-09 21:27:56 +02:00
mic
3de12ca92f comment updated 2024-05-09 21:08:44 +02:00
mic
4ae0a9b371 added a button to force the completion 2024-05-08 23:46:36 +02:00
mic
5bd85500bf updated chatgpt_getRegenerateButton to correctly handling a change in the ChatGPT web interface. related to #43 2024-05-08 23:31:50 +02:00
mic
90338dbe4c added is_default: 1 prop to defaultPrompts 2024-05-08 21:37:24 +02:00
mic
5ecc13ad20 custom prompts: added base methods. see #12 2024-05-07 22:36:44 +02:00
mic
935288ff70 code formatted to be more readable 2024-05-07 21:44:06 +02:00
mic
57b68e4d3d fixed testing parameter 2024-05-06 22:39:54 +02:00
mic
3b2ad28398 translated some hardcoded strings 2024-05-06 22:28:57 +02:00
mic
f8777d8fc7 asking for a custom text if needed. fixes #32 2024-05-06 22:16:03 +02:00
mic
ee9704429d work in progress #32 2024-05-05 23:45:34 +02:00
mic
c61268f1f2 prepending * to menutitle if custom prompt needed 2024-05-04 00:00:31 +02:00
mic
4b630bee78 added the need_custom_text attribute. related to #32 2024-05-03 23:54:49 +02:00
mic
0456874185 exiting for loop when the model is found. related to #38 2024-05-03 23:05:38 +02:00
mic
23717c0985 ChatGPT-4 working even in a larger window. Related to #38 2024-05-02 23:59:42 +02:00
mic
f85b53e78f removed debug console logs 2024-05-01 21:47:01 +02:00
mic
1547409669 correctly handling the modification of the body. see #30 #34 2024-05-01 00:33:58 +02:00
mic
1ec6a610e6 added body manipulation functions. see #30 #34 2024-05-01 00:33:11 +02:00
mic
df17226b7a stripping quotation marks from the response 2024-05-01 00:05:38 +02:00
mic
75dff8b292 two empty lines added at the end of the inserted text 2024-04-30 23:53:29 +02:00
mic
ae27f94866 removed methods moved to mzta-utils.js. see #30 #34 2024-04-30 22:46:23 +02:00
mic
87d5b332bb added methods to manipolate the compose message dom. see #30 #34 2024-04-30 22:27:32 +02:00
mic
2044c5cd15 correctly selecting the right identity if found in the original message. fixes #31 2024-04-27 21:41:48 +02:00
mic
55692e7ebd added link to the status page. fixes #28 2024-04-18 22:40:36 +02:00
mic
656a6c9f4f Centered the model warning message and added a button to change the gpt4 otpion and force to continue the job. Related to #27 2024-04-18 22:13:35 +02:00
mic
d12a0cc335 Improved the error message graphic. Related to #27 2024-04-18 00:02:13 +02:00
mic
0b0adb0a3a Waiting for CahtGPT4 to load if the option is active. Related to #27 2024-04-17 23:51:35 +02:00
mic
3b4b4deecf Fixed a bug with reversed paragraphs in replies. 2024-04-17 23:03:52 +02:00
mic
ab3552ea67 Fixed the new chat layout with the change model button that adds a number at the end of the text. Fixes #29 2024-04-17 22:55:39 +02:00
mic
6f9d80f29e using system menus. fixes #23 2024-04-17 21:12:42 +02:00
mic
17906d4a7e Fixed methods derived message 2024-04-16 23:06:06 +02:00
mic
42d212c715 License header added to js files 2024-04-16 22:19:52 +02:00
mic
a30810cbee If the prompt is more than 30.000 characters, do not procede and give a warning. Fixes #26 2024-04-13 21:48:36 +02:00
mic
7ec1529cf6 Keeping the quoted text in the reply. Fixes #25. 2024-04-12 23:51:21 +02:00
Mic
cfb210b0fe
Fixed chatgpt padding for collapsable menu 2024-04-05 18:47:31 +02:00
mic
baa353c40f embedded div moved to bottom 2024-04-05 12:49:35 +02:00
mic
fcabeae80e "Prompt this" added. Fixes #15 2024-04-05 00:51:24 +02:00
mic
1e8fc2a1e9 Default lang for chatgpt responses. related to #14 2024-04-05 00:34:00 +02:00
mic
d15a56a03a Typo Fixed 2024-04-05 00:32:13 +02:00
mic
d3f026671c Added need_signature properties to prompts 2024-04-05 00:31:52 +02:00
mic
fb158f8fab Added the id to the prompts 2024-04-05 00:22:05 +02:00
mic
05155123ac comment typo fixed 2024-04-04 23:56:37 +02:00
mic
ddd0475076 check if the user is logged in, otherwise show a message. fixes #7 2024-04-03 23:32:59 +02:00
mic
a97217ba64 loading indicator added. fixes #11 2024-04-03 23:16:34 +02:00
mic
bc3dff856e COrrectly handling the carraige returns. Fixes #9 2024-04-02 00:50:30 +02:00
mic
1e283cb2aa implemented the reply to action 2024-04-02 00:06:54 +02:00
mic
41e4a2e547 First working version 2024-04-01 22:58:39 +02:00