Commit graph

736 commits

Author SHA1 Message Date
mic
5468928673 console.log debug lines commented out 2025-12-26 22:32:18 +01:00
mic
5e8015161b correctly substituting text for a dynamic placeholder see #527 2025-12-26 12:09:26 +01:00
mic
049b88302a if it's async, you have to wait..... 2025-12-26 11:51:34 +01:00
mic
f22482d083 console.log debug line added 2025-12-26 11:49:36 +01:00
mic
5521945d70 fixed wrong line modified 2025-12-26 11:47:24 +01:00
mic
06c13a4f81 using the correct dynamic id for the substitution. see #527 2025-12-26 11:47:05 +01:00
mic
633f0dc3e2 getMailHeader method added. see #527 2025-12-26 11:45:20 +01:00
mic
61c7edc544 var name fixed. see #527 2025-12-26 11:45:05 +01:00
mic
7a6927ceec dynamic placeholder methods added. see #527 2025-12-26 11:37:25 +01:00
mic
936f225adf OpenAI class for responses constructor fixed. see #407 2025-12-24 00:08:18 +01:00
Mic
3e7f67b698 removing commented line 2025-12-22 23:55:00 +01:00
Mic
f6141f8852 old openai api files removed. see #407 2025-12-23 00:29:00 +01:00
Mic
713415c1d2 now using the openai responses API. see #407 2025-12-23 00:29:00 +01:00
mic
65ee959f0d improved openai responses see #407 2025-12-22 23:46:33 +01:00
Mic
8e04393c19 implemented the new api call, no response elaboration yet 2025-12-22 23:37:05 +01:00
mic
b540e0ba73 JSON parsing lines error handling improved in APIs. See #550 2025-12-14 22:19:04 +01:00
mic
9ac80030df fixing OpenRouter first line. see #550 2025-12-08 16:33:58 +01:00
mic
f57b855337 debug console.log statement commented 2025-12-08 16:22:45 +01:00
mic
59d500de43 Rollback #551 2025-12-08 15:40:26 +01:00
Mic
3c63da4f95 fixed custom div positioning after chatgpt web interface update. see #556 2025-12-08 11:53:11 +01:00
mic
8d8f8abaf3 added method fixJsonBraces, see #551. 2025-12-07 18:31:07 +01:00
mic
f5abf08a9a system_prompt added to the anthropic worker. See #549 2025-12-07 18:09:25 +01:00
mic
ea67c56d22 system_prompt added to the anthropic class. See #549 2025-12-07 18:07:57 +01:00
mic
ba12839f1d method name fixed. see #535 2025-10-22 22:58:23 +02:00
mic
88c55b2507 diff.js updated with the correct comment header, as requested by ATN reviewers 2025-10-19 23:03:53 +02:00
mic
9daa1a76e3 ensuring an empty string when needed. see #520 2025-10-16 22:16:41 +02:00
mic
8f19cea3cd mztaDoCustomText is now always a string. see #522 2025-10-03 23:33:50 +02:00
Mic
3fccf39852 Merge branch 'main' of github.com:micz/ThunderAI 2025-10-02 20:44:41 +02:00
Mic
4df034a670 chatgpt_isIdle now works also with the thumb-up icon 2025-10-01 23:47:00 +02:00
Mic
3e8924350e in chatgpt web do not show the force complete hint if the prompt has not been sent 2025-10-01 23:38:00 +02:00
mic
0d33809368 error log changed to warning. see #517 2025-10-01 20:50:43 +02:00
mic
a20b06f80f log message fixed 2025-09-26 22:02:36 +02:00
mic
684f8eaebb checking response arrays in google gemini worker. see #514 2025-09-24 22:23:39 +02:00
Mic
886ff98abe Anthropic API renamed to Cloude API. see #510 2025-09-16 19:20:00 +02:00
mic
9d52edbb2c specific prompt integration improved with two new methods: checkAPIIntegration and hasSpecificIntegration. see #438 2025-09-14 23:10:16 +02:00
Mic
78f2936d65 clicking on the force completion message closes it forcing the completion. see #419 2025-09-12 00:17:00 +02:00
Mic
f77d1dabe5 autotag and spamfilter context menu icons added 2025-09-10 00:35:00 +02:00
Mic
ca8d6a32d0 console.log debug line commented out 2025-09-10 00:29:00 +02:00
Mic
942a3ba19e log statement added 2025-09-09 23:39:00 +02:00
Mic
a6acc6559c setDefaultPromptsProperties fixed, is no more saving undefined values 2025-09-09 23:36:00 +02:00
Mic
640ff4fa50 getGPTWebModelString improved 2025-09-09 23:36:00 +02:00
Mic
03f2cfafab handling also an undefined value 2025-09-09 23:36:00 +02:00
mic
0372c8a25d double import removed 2025-09-09 22:18:43 +02:00
Mic
b7953fe366
Merge branch 'issue_438_autofeat_apimodel' into api_improvements 2025-09-09 21:54:10 +02:00
Mic
ac519c3ff5 trim fixed 2025-09-08 22:09:00 +02:00
Mic
59758a76c0 using thinking_budget in gemini. see #494 2025-09-08 22:00:00 +02:00
Mic
2b794690d8 thinkingBudget renamed to thinking_budget. see #494 2025-09-08 22:00:00 +02:00
Mic
9d34ef2cf7 gemini, added model default option for the thinking budget. see #494 2025-09-08 22:00:00 +02:00
Mic
a34d3c41e0 code formatted. better prefs import. 2025-09-08 21:42:00 +02:00
Mic
c02bcc087e info added about gemini thinking budget. see #494 2025-09-08 21:42:00 +02:00
Mic
9750592ee9 thinkingBudget added to google gemini. see #494 2025-09-08 21:22:00 +02:00
Mic
3c919ac67d APIs constructors are now accepting an object as input argument 2025-09-08 21:13:00 +02:00
Mic
c55985d076 getConnectionType now has a use_promptspecific_api = true third parameter 2025-09-07 20:05:00 +02:00
Mic
b8501f5974 clearPromptAPI method prop names fixed 2025-09-07 19:55:00 +02:00
Mic
d4f7cf5e65 clearPromptAPI method added 2025-09-07 19:55:00 +02:00
Mic
f973f8b8d0 prompt api now used also from the thunderai menu. see #438 2025-09-07 19:50:00 +02:00
mic
119e99df6a thunderai menu addtags is now using the prompt api config. see #438 2025-09-06 00:47:22 +02:00
Mic
1c39801a2a always showing with proper message the addtags and spamfilter rows. see #438 2025-09-04 22:56:00 +02:00
Mic
ee7a033e74 use prompt api and model when assigning tags. see #438 2025-09-04 22:51:00 +02:00
Mic
66776d2e20 fixed missing : 2025-09-04 22:46:00 +02:00
Mic
01a1934ddf missing .js in import fixed 2025-09-04 22:46:00 +02:00
Mic
9681a938e3 mzta_specialCommand has now a custom_model parameter. see #438 2025-09-04 22:46:00 +02:00
Mic
9967e28861 mzta_specialCommand is now using an object in input 2025-09-04 22:41:00 +02:00
Mic
72f3c49d77 using prefs_default 2025-09-04 22:41:00 +02:00
Mic
7f9ee613ab code formatted for clarity 2025-09-04 22:41:00 +02:00
Mic
e7f0eb30d7 checkSpecificIntegration method added 2025-09-04 22:31:00 +02:00
Mic
005e697e9c getActiveSpecialPromptsIDs is considering addtags specific integration configuration. see #438 2025-09-04 22:26:00 +02:00
Mic
acba02ed44 added info comment 2025-09-04 22:26:00 +02:00
Mic
c34e5f5fed getConnectionType method added 2025-09-03 23:18:00 +02:00
Mic
0bd576eb8f allSpecial fixed 2025-09-03 23:13:00 +02:00
Mic
0aa342084c loadPrompt method added to load a single prompt 2025-09-03 23:08:00 +02:00
Mic
e39f48c06c savePrompt method added to save a single prompt 2025-09-03 23:03:00 +02:00
Mic
9995b78e39 api_type and api_model properties added to prompts. see #438 2025-09-03 22:53:00 +02:00
Mic
c15fe8e85f isAPIKeyValue method added 2025-09-02 22:50:00 +02:00
Mic
0ec19550c0 moved populateConnectionTypeOptions 2025-09-02 22:50:00 +02:00
Mic
e551974a56 work in progress, saving a point before working on generalizing the connetiontype html code. see #438 2025-09-02 22:45:00 +02:00
Mic
d404897911 connection_type dynamic loading 2025-09-02 22:45:00 +02:00
Mic
0f22ae5148 adding the statement to the prompt to limit the used tags. see #289 2025-09-01 23:45:00 +02:00
Mic
c25639b245 normalizeStringList method improved again 2025-09-01 23:40:00 +02:00
Mic
b8cb3adfc6 filtering tags in autotagging. see #289 2025-09-01 23:40:00 +02:00
Mic
e563492e3f normalizeStringList method improved 2025-09-01 23:30:00 +02:00
Mic
34fcb3c157 normalizeStringList method added 2025-09-01 23:30:00 +02:00
Mic
0f3495043c Added a message to explain to click on force completion after 7 seconds. see #419 2025-08-31 15:46:00 +02:00
Mic
4be5db1373 Improved getAPIsInitMessageString args handling. see #491 2025-08-31 15:41:00 +02:00
mic
95591993b8 console.log debug statement removed 2025-08-29 21:01:36 +02:00
mic
399664cc04 missing space 2025-08-29 21:00:39 +02:00
Mic
5af9a82951 Improved prompts method args handling. see #471 2025-08-28 21:09:00 +02:00
Mic
f82aa23560 mail_attachments_info placeholder added. see #446 2025-08-28 20:54:00 +02:00
Mic
9292b0d02e Deepseek added to the openai compatible api presets. see #486 2025-08-28 20:49:00 +02:00
mic
49b9ab1b6c improved linebreaks. see #482 2025-08-22 23:24:16 +02:00
mic
ad6ac50dc9 method convertNewlinesToParagraphs added. see #482 2025-08-22 23:16:57 +02:00
Mic
c17b3187b2
Merge branch 'main' into 3.6.1_issue_469 2025-08-22 22:49:47 +02:00
Kilian Singer
c90f9c1b9b added cleanup of newlines also to only_quoted_text 2025-08-22 17:30:41 +02:00
Kilian Singer
645d0845a1 removed debugging string 2025-08-21 09:49:28 +02:00
Kilian Singer
51614ea95d new lines are now preserved in mzta-menus.js
also newlines are normalized to \n in chase
\r\n (like on windows platforms) are present.
some LLMs work better with proper paragraph breaks.
2025-08-21 09:37:43 +02:00
mic
704fa10a04 chatgpt web models list fixed. see #464 2025-08-20 21:53:16 +02:00
mic
7fbe0c0338 forcing exixting tags also when using the ThuderAI menu. see #475 2025-08-20 21:41:35 +02:00
Kilian Singer
09d620c294 also removing <style> tags 2025-08-20 18:42:36 +02:00
Kilian Singer
c24097245b added export keyword 2025-08-20 18:21:04 +02:00
Kilian Singer
a96702b0a8 used DOMParser to convert HTML to plain text 2025-08-20 18:10:18 +02:00
mic
9483a57936 Enhance htmlBodyToPlainText function to handle additional block tags and improve HTML tag removal 2025-08-20 09:46:49 +02:00
mic
8223f4ef4f Add htmlBodyToPlainText function to sanitize HTML content. see #470 2025-08-19 16:24:17 +02:00
mic
58d449c7e6 chatgpt web interface models list updated. see #464 2025-08-11 22:27:41 +02:00
mic
f97acf0ece chatgpt web interface is now stripping any <br> tag in the response. see #462 2025-08-11 22:04:26 +02:00
mic
98352938af perplexity ai config fixed. see #461 2025-08-11 21:59:07 +02:00
Mic
a66ebee014
Merge branch 'main' into v3.6.0 2025-07-30 22:40:00 +02:00
mic
032bd37cb4 autoscroll to bottom fixed in chatgpt web interface integration 2025-07-25 23:27:04 +02:00
mic
51068dd95c Added a new default prompt to reply with a custom command asked when exectutin the prompt. See #444 2025-07-25 23:15:30 +02:00
Mic
66a64f924b fix: reply type button enable/disable only when present 2025-06-20 22:17:41 +02:00
Mic
b0135bcdf3 change reply type button improved in hatgpt web interface. see #372 2025-06-19 23:50:00 +02:00
Mic
647f23a50b Improved the AI web chat init message 2025-06-19 21:36:28 +02:00
Mic
d4d1653ac7 Enhance word diff rendering by splitting segments on <br> tags and appending appropriate span elements for added, removed, and unchanged text. 2025-06-19 00:33:00 +02:00
mic
4b9631db47 Refactor stripHtmlKeepLines to utilize convertBrToNewlines for improved HTML handling 2025-06-18 23:22:05 +02:00
mic
72428d8ee5 Integrate convertNewlinesToBr function to process text selections for improved HTML formatting 2025-06-18 23:11:27 +02:00
mic
5c0b011dad Add convertNewlinesToBr function to replace newlines with <br> tags 2025-06-18 22:25:37 +02:00
Mic
65e07723f5 added a debug line 2025-06-18 21:58:12 +02:00
Mic
1b0b0dcf59 fullPrompt logger added 2025-06-18 00:54:00 +02:00
Mic
6bafae81ca Add additional_message parameter to getAPIsInitMessageString for enhanced output. see #429 and #430 2025-06-18 00:00:00 +02:00
mic
f91e0e793f Add support for custom placeholders in prompt preparation. see #156 2025-06-16 21:13:48 +02:00
mic
f5a02e6fde Update placeholder properties documentation. see #156 2025-06-16 20:56:32 +02:00
Mic
7471f7691a Add support for custom placeholders in text replacement and validation. see #156 2025-06-15 23:42:00 +02:00
Mic
f4c1ab1018 import/export data placeholders added. see #156 2025-06-15 23:37:00 +02:00
Mic
bed5c65de0 refactored many functions to work with custom placeholders. see #156 2025-06-15 23:22:00 +02:00
Mic
2351034e3c Rename getCustomPromptsUsedSpace to getLocalStorageUsedSpace for clarity and update references 2025-06-15 23:17:00 +02:00
mic
1f93f4d295 the add tags response is now expcted as a JSON. see #365 2025-06-15 00:38:27 +02:00
mic
071ee6acf2 Refactor tag extraction in getTagsFromResponse to utilize extractJsonObject for improved JSON parsing. see #365 2025-06-15 00:37:57 +02:00
mic
859d8d9ef3 Add newline formatting to tag addition messages in finalizePrompt_add_tags 2025-06-15 00:33:40 +02:00
mic
d3813c00f6 Improve tag extraction in getTagsFromResponse by trimming whitespace and enhancing comma splitting for better parsing. see #365 2025-06-15 00:28:04 +02:00
mic
61480c0dc9 Enhance tag extraction functionality in getTagsFromResponse method with improved JSON parsing and backward compatibility. see #365 2025-06-15 00:22:10 +02:00
mic
07cf0774f9 Refactor prompt response messages and update HTML references for consistency across locales. see #365 2025-06-15 00:15:21 +02:00
mic
6c86e02b6f added an option to exclude the tag only with an exact match. see #395 2025-06-13 23:10:23 +02:00
mic
015a6f68a4 swap reply type icons in addCustomDiv function. see #372 2025-06-13 21:17:20 +02:00
Mic
ec4bd3c366 scroll to bottom fixed in chatgpt web interface 2025-06-12 23:35:00 +02:00
Mic
54b3ba2dc9 icons updated. see #372 2025-06-12 23:25:00 +02:00
Mic
abe11457e6 added the change the reply type button in the chatgpt web interface. see #372 2025-06-12 23:20:00 +02:00
Mic
85f4fc7d11 chatgpt web interface fix for the response completion ported from v3.5.4 2025-06-12 23:15:00 +02:00
Mic
42ed50151d Refactor icon selection logic for regenerate and read aloud buttons. again 2025-06-12 23:15:00 +02:00
mic
e090d37df9 chatgpt web interface fix for the response completion ported from v3.5.3 2025-06-11 21:56:37 +02:00
mic
cedbfaf26b showing the reply type in the chatgpt web interface. see #372 2025-06-11 21:55:04 +02:00
mic
ad5afee395 Enhance icon detection logic for regenerate and read aloud buttons 2025-06-10 23:42:11 +02:00
Mic
ff8fff50c9 add 'think' parameter to Ollama constructor and include in fetchResponse. see #398 2025-06-09 20:57:00 +02:00
Mic
e1fd5a4800 using chatgpt_api_store. see #406 2025-06-09 20:47:00 +02:00
Mic
d2512a5ef7 update OpenAI class constructor to include store parameter. see #406 2025-06-09 20:47:00 +02:00
Mic
ca29885aa4 update OpenAIComp to include additional headers for OpenRouter API requests. see #401 2025-06-09 20:42:00 +02:00
Mic
3fc641dea4 open api comp config reordered 2025-06-09 20:32:00 +02:00
Mic
fc865df48e OpenRouter API config added. see #401 2025-06-09 20:32:00 +02:00
Mic
f4529c0994 Grok and Mistral name updated 2025-06-09 20:27:00 +02:00
Mic
cce942d592 Perplexity API config added. see #405 2025-06-09 20:27:00 +02:00
mic
6ee7d7c96f [OpenAIComp] Add error handling for empty choices in parsed response 2025-06-10 08:09:37 +02:00
mic
1ef91e1bbe Enhance login check and alert handling in run function. see #411 2025-06-05 22:15:34 +02:00
mic
4485b7fe2c Add handling for free account detection in checkGPTModel function. see #408 2025-06-05 21:48:42 +02:00
Mic
2cf21599c0 hide model warning on button click in addCustomDiv function 2025-06-03 22:43:00 +02:00
mic
2ba1905c46 Fix formatting of comments in exclusion list file for consistency 2025-05-25 22:12:23 +02:00
mic
bbf8eb7c5e Enhance tag assignment logging and prevent new tag creation when not needed. see #390 2025-05-25 22:03:08 +02:00
mic
ea22caa23c Refactor tag existence check to use label comparison and enhance logging for tag assignment. See #390 2025-05-25 11:41:14 +02:00
Mic
1e8eb4a1d4 selected_html placeholder added. see #368 2025-05-22 00:51:00 +02:00
mic
d419373515 OpenAI Comp services shorcut added. see #378 2025-05-21 22:35:36 +02:00
mic
95f6c0e40f Add API connection messages and refactor initialization logging 2025-05-21 21:49:33 +02:00
mic
1a75a93507 added anthroic api to the automatic features. see #349 2025-05-21 17:58:53 +02:00
mic
eff4c3f0da using anthropic in the api webchat. see #349 2025-05-20 23:07:40 +02:00
mic
19565ec7c5 max_tokens added to anthropic. see #349 2025-05-20 22:05:00 +02:00
mic
7b70c16e50 Anthropic API Class added. see #349 2025-05-20 21:53:29 +02:00
mic
527b127ede fixed getCurrentIdentity methof. Fixes #369 2025-05-07 18:30:11 +02:00
mic
e7c1d0d701 fixed mail_ quoted_text placeholder also for forwarded messages 2025-05-03 22:54:58 +02:00
mic
d35f6dd08d Fix condition for handling replies from the compose window in message listener. See #353 2025-05-02 11:27:10 +02:00
mic
8f8c7e611d comment line improved 2025-05-02 11:19:17 +02:00
mic
1d798c4a8c Add ChatGPTWeb_models export to mzta-utils.js and update imports in mzta-options.js 2025-05-01 23:43:19 +02:00
mic
ca8e62aac4 Add getChatGPTWebModelsList_HTML function to mzta-utils.js and update imports in mzta-options.js 2025-05-01 23:41:17 +02:00
mic
59ae3643a5 Ported all the mods from v3.3.* into v3.4.0 2025-05-01 23:32:52 +02:00
mic
c2065e09b6 Comment out debug console logs in tb115_loader.js and mzta-background.js for cleaner output 2025-05-01 23:20:45 +02:00
Mic
2ff757b529 Hide warning message and update loading state in doRetry function 2025-05-01 22:55:01 +02:00
Mic
eafb278eda Refactor error handling to simplify textarea not found warning message display 2025-05-01 22:50:50 +02:00
Mic
f75f252068 typo fixed 2025-05-01 22:46:09 +02:00
Mic
0bc864938c Update checkGPTModel to return a promise and improve DOM element handling 2025-05-01 22:44:40 +02:00
Mic
e99b030033 Update chatgpt_getRegenerateButton to detect read aloud icon instead of thumb up icon 2025-04-30 22:23:50 +02:00
Mic
80bd81cb5a Enhance chatgpt_getRegenerateButton to detect thumb up icon in addition to regen icon. see #277 #168 2025-04-30 00:19:00 +02:00
Mic
f043f2e93b fix: update regex in validateChatGPTWebCustomData to allow additional characters. see #277 #168 2025-04-30 00:19:00 +02:00
Mic
483d8a14d2 add default values for chatgpt web model, project, and custom GPT in defaultPrompts. see #277 #168 2025-04-30 00:19:00 +02:00
mic
52049df162 add default values for chatgpt web model and project in getCustomPrompts function. see #277 #168 2025-04-29 23:01:29 +02:00
Mic
0492fa34be improved validateChatGPTWebCustomData method. see #277 #168 2025-04-28 21:03:00 +02:00
Mic
504ff391bb Move validation function for ChatGPT web custom data to the utils js file and update imports 2025-04-27 22:20:00 +02:00
Mic
2e22cea996 Add sanitizeChatGPTModelData function and update usage in options 2025-04-27 22:20:00 +02:00
mic
0214885a9f commented out debug console logs for Intl.Segmenter in tb115_loader.js and messagesArea.js 2025-04-27 21:33:30 +02:00
Mic
79f88e3c9a Update prompts properties info based on latest modifications. see #277 and #168 2025-04-24 01:57:00 +02:00
Mic
7c510bee57 Add sanitizeChatGPTWebCustomData function and update usage in options. see #277 and #168 2025-04-24 01:47:00 +02:00
Mic
bdd4d7ffc7 Add validation function for ChatGPT Web custom data and update related logic. see #277 and #168 2025-04-24 01:37:00 +02:00
mic
a17d855ee5 fix: ensure HTML body is generated from plain text if no parts are available 2025-04-23 18:24:09 +02:00
mic
594c5a7c8a refactor: update fetchResponse to nest num_ctx within options. see #351 2025-04-22 21:24:03 +02:00
Mic
1907739f8b
Merge branch 'main' into issue_350 2025-04-22 21:08:23 +02:00
Mic
ce3d392628 adding options to manage accounts for autotagging. see #327 2025-04-22 00:16:00 +02:00
Mic
377fc67a18 Add ollama_num_ctx support in API and worker initialization. see #351 2025-04-22 00:11:00 +02:00
Mic
fc7854bb69 Enhance Ollama class constructor to accept num_ctx parameter and include it in API request if greater than zero. see #351 2025-04-22 00:06:00 +02:00
Mic
775882de23 Update error messages to reflect valid data checks and improve user feedback in task and calendar dialogs. see #333 2025-04-22 00:01:00 +02:00
mic
81a1bfb9c8 Add confirmation prompt for inserting AI response when no text is selected. See #353 2025-04-21 21:20:01 +02:00
mic
7d1760f1b8 Enhance plain text handling by integrating default preferences and adding HTML stripping functionality. see #350 2025-04-20 22:43:10 +02:00
mic
d49e6d65e7 a "do_reply" from the compose window is changed in a "substitute text". see #353 2025-04-20 22:15:10 +02:00
mic
6494a4f48f Refactor getMailBody function to work also with annidated multiparts. see #335 2025-04-18 14:02:25 +02:00
mic
904550f6e6 Enhance placeholder replacement logic to ensure valid placeholders are used 2025-04-17 21:25:14 +02:00
Mic
173cbf8ad0 added a few logs lines 2025-04-16 23:59:00 +02:00
Mic
c449f68cc1 Refactor getActiveSpecialPromptsIDs function to accept a single argument object for improved readability and maintainability 2025-04-16 23:54:00 +02:00