Commit graph

92 commits

Author SHA1 Message Date
Hyeonseo Nam
b60bf1bda4
Merge pull request #43 from JsThiago/patch-1
Update answer format in DEFAULT_PROMPT_TEMPLATE_WO_REF
2025-09-10 01:28:21 +09:00
Thiago_Baldino
34e820509a
Update answer format in DEFAULT_PROMPT_TEMPLATE_WO_REF
The template is wrong with what the plugin expects. It expect the json with a property "outputs", and not "output". And it also expect an array of categories instead of selected_category
2025-09-03 20:15:59 -03:00
HyeonseoNam
edb47272cc chore: Edit minor sentence 2025-07-11 02:53:53 +09:00
HyeonseoNam
aa9819135a docs: Update REAEME - contributors, minor sentence 2025-07-11 02:47:16 +09:00
HyeonseoNam
ae3c606173 docs: Update REAEME - default gpt model, local llm, jina api 2025-07-11 02:42:52 +09:00
HyeonseoNam
8910772a7b feat: Edit openai -> openai-compatible engine & Improve error handlings
- Edit Openai engine to Openai-compatible engine
- Enhance error messages for specific API response statuses (401, 403, 429, 500).
- Update notices for missing API keys and classification limits in AutoClassifierPlugin.
- Refactor settings to provide clearer descriptions and examples for API configurations.
- Add token usage information in success messages for Jina AI API calls.
2025-07-11 02:19:59 +09:00
HyeonseoNam
24645b2812 chore: Update package infos 2025-07-11 02:06:41 +09:00
HyeonseoNam
1808c5f98d Merge branch 'main' into dev 2025-07-11 02:02:00 +09:00
Thiago Moraes
1f89e4e38b
feat: Integrate Jina AI classification API (#40)
* feat: Add configurable multiple tag suggestions with max limit setting

* refactor: Move createLoadingNotice method before its usage in runClassifyTag

* fix: Add missing catch block and error handling in classifyTag method

* fix: Add nested try-catch for JSON parsing and improve error handling

style: Format code with consistent indentation and line breaks

* refactor: Remove max_suggestions from template and apply globally in classification logic

* refactor: Move max suggestions setting to main Advanced Settings section

* improve prompt adherence for JSON (#33)

* fix: imporove default prompt template to ensure valid JSON output.

* bump version to 1.2.1

* Fix JSON parse error when other GPT model used (#38)

* Integrate Jina AI for text classification - rebased

- Update package-lock.json
- Add JinaAI API client in src/jina-api.ts.
- Update settings (src/settings.ts) to include Jina AI engine selection, API key, base URL, and model.
- Modify main.ts to conditionally call Jina AI or ChatGPT based on selected engine.
- Adjust response parsing for Jina AI output.
- Add Jina API test button in settings.
- Hide ChatGPT-specific advanced settings when Jina AI is selected and
  vice-versa.
- Update manifest.json.
- Update .gitignore.

---------

Co-authored-by: Robin Tuszik <mail@robin.gg>
Co-authored-by: Hyeonseo Nam <auspice7g@gmail.com>
Co-authored-by: SophomoreSo <57844175+SophomoreSo@users.noreply.github.com>
2025-07-09 23:33:37 +09:00
SophomoreSo
bab745f60a
Fix JSON parse error when other GPT model used (#38) 2025-02-19 12:59:10 +09:00
Robin Tuszik
baeaf47cb7
improve prompt adherence for JSON (#33)
* fix: imporove default prompt template to ensure valid JSON output.

* bump version to 1.2.1
2025-02-19 12:58:59 +09:00
Hyeonseo Nam
e02924f9b4
Merge pull request #29 from rtuszik/tag-limit
allow for multiple tags, tag limit
2024-12-12 22:22:33 +09:00
Hyeonseo Nam
9415fa0f91
Merge pull request #28 from rtuszik/develop
bump version, README changes
2024-12-12 22:06:30 +09:00
Robin Tuszik
f6b0afeeba refactor: Move max suggestions setting to main Advanced Settings section 2024-12-11 21:35:57 +01:00
Robin Tuszik
c1d7a78e5c refactor: Remove max_suggestions from template and apply globally in classification logic 2024-12-11 21:35:57 +01:00
Robin Tuszik
aedda20210 fix: Add nested try-catch for JSON parsing and improve error handling
style: Format code with consistent indentation and line breaks
2024-12-11 21:35:46 +01:00
Robin Tuszik
5583d04ac0 fix: Add missing catch block and error handling in classifyTag method 2024-12-11 21:09:47 +01:00
Robin Tuszik
053cec1d27 refactor: Move createLoadingNotice method before its usage in runClassifyTag 2024-12-11 21:09:39 +01:00
Robin Tuszik
d49c5199c5 feat: Add configurable multiple tag suggestions with max limit setting 2024-12-11 21:03:06 +01:00
Robin Tuszik
f991345fe3 docs: fix wording and inconsistencies 2024-12-11 20:57:18 +01:00
Robin Tuszik
7d4cb34ee2 fix: bump version for obsidian plugin release 2024-12-11 20:48:37 +01:00
Robin Tuszik
f6f268d209 docs: update readme for new settings parameters 2024-12-11 20:48:17 +01:00
Hyeonseo Nam
97706f765f
v1.2.0
Merge pull request #27 from rtuszik/openai
custom base url and model support (adds support for ollama, openrouter, etc.)
2024-12-11 00:06:51 +09:00
Robin Tuszik
540cf1f501 fix: add missing openai dependency 2024-12-08 05:07:38 +01:00
Robin Tuszik
4204be6185 fix: Update test API call to use baseURL setting 2024-12-08 04:10:14 +01:00
Robin Tuszik
475009ea40 feat: Move custom model selection to API settings and apply globally 2024-12-08 04:10:14 +01:00
Robin Tuszik
45f66586e9 feat(api): migrate to official OpenAI Node.js library
feat: Add configurable base URL for OpenAI API calls
2024-12-08 04:09:57 +01:00
Hyeonseo Nam
692419e361
Merge pull request #25 from tk42/main
Add custom model and max tokens options in settings
2024-04-27 23:23:50 +09:00
tk42
0681b42407 Refactor API options in ChatGPT class and add custom model and max tokens settings 2024-04-20 19:33:54 +09:00
Hyeonseo Nam
23a83fd6a6 v1.1.2 2024-03-05 22:25:54 +09:00
Hyeonseo Nam
7d00fe8622
Merge pull request #21 from gravityfargo/main 2024-03-03 17:55:32 +09:00
Nathan Price
a5478ec4cc
fix regex 2024-03-01 15:58:36 -05:00
Hyeonseo Nam
06c3c051ad v1.1.1 2023-05-06 01:38:00 +09:00
Hyeonseo Nam
d8aede8a3d Fix toggle save and some error handlings 2023-05-06 01:37:28 +09:00
Hyeonseo Nam
eed824884a v1.1.0 2023-05-04 03:01:34 +09:00
Hyeonseo Nam
1796ae9fa5 Edit README.md 2023-05-04 02:52:06 +09:00
Hyeonseo Nam
a9321e60fb Fix json regex more robust to catch the response 2023-05-04 02:33:07 +09:00
Hyeonseo Nam
c09fca3d9e Edit: change frontmatter, title to OutType from OutLocation 2023-05-04 02:30:52 +09:00
Hyeonseo Nam
d450bedaba Edit option order 2023-05-04 00:11:07 +09:00
Hyeonseo Nam
03bbf4150c Edit overwrite setting 2023-05-04 00:06:53 +09:00
Hyeonseo Nam
98fda81999 Add insertAtContentTop 2023-05-03 23:53:32 +09:00
Hyeonseo Nam
dc31456f5e Add wikilink 2023-05-03 22:50:42 +09:00
Hyeonseo Nam
8080215b40 Add toggle for using reference 2023-05-03 21:46:35 +09:00
Hyeonseo Nam
c30359fff3 Edit api: replace fetch to requestUrl 2023-03-24 20:43:28 +09:00
Hyeonseo Nam
310a038fb3 Edit settings: replace innerHTML to creatEl 2023-03-24 20:31:47 +09:00
Hyeonseo Nam
5e4dc7181a Edit settings: replace to tab.setQuery 2023-03-24 20:25:24 +09:00
Hyeonseo Nam
a4aa29d83d Edit descriptions 2023-03-20 15:58:55 +09:00
Hyeonseo Nam
df838bca53 Fix build errors 2023-03-20 14:49:20 +09:00
Hyeonseo Nam
05f2db06f0 Edit README: badge 2023-03-20 14:31:19 +09:00
Hyeonseo Nam
9447398ce0 Edit description 2023-03-20 14:28:50 +09:00