195 Commits

Author SHA1 Message Date
史悦
8e1f3d8259 优化 generatePrompt 函数,通过注释添加提示,以确保仅输出Git提交信息。
Some checks failed
Test / Test (ubuntu-latest) (push) Has been cancelled
Test / Test (windows-latest) (push) Has been cancelled
2025-10-21 10:12:03 +08:00
史悦
35372013a1 ``refactor(prompt): 优化并规范化生成提交信息的提示词- 将 conventional 类型的提示词从 JSON 格式更改为更简洁的列表格式。- 将通用规则格式化为项目列表,并增加“使用动词开头”的祈使句要求,以提高生成消息的一致性和质量。``
Some checks failed
Test / Test (ubuntu-latest) (push) Has been cancelled
Test / Test (windows-latest) (push) Has been cancelled
2025-10-21 10:02:56 +08:00
史悦
65da1dc301 feat: 在aicommits中添加提交、推送、重写和取消操作选项
Some checks failed
Test / Test (ubuntu-latest) (push) Has been cancelled
Test / Test (windows-latest) (push) Has been cancelled
2025-08-28 10:53:49 +08:00
史悦
69d3ef5040 文档: 在README.md中增加baseURL配置项说明 2025-08-27 17:50:39 +08:00
史悦
b01e7fe566 docs: 将README.md翻译为中文
Some checks failed
Test / Test (ubuntu-latest) (push) Has been cancelled
Test / Test (windows-latest) (push) Has been cancelled
2025-08-27 16:56:47 +08:00
史悦
d23dfecbcd 重构配置模块以移除ini依赖,增强baseURL支持并汉化AI提示词
Some checks failed
Test / Test (ubuntu-latest) (push) Has been cancelled
Test / Test (windows-latest) (push) Has been cancelled
2025-08-27 16:52:04 +08:00
史悦
e7f26efc71 feat: 添加对自定义 baseURL 的支持
- 在 config.ts 中添加 baseURL 解析器
- 在 openai.ts 中更新 createChatCompletion 和 generateCommitMessage 函数
- 在 aicommits.ts 中传递 baseURL 参数
- 支持使用自定义 API 端点替代默认的 OpenAI API
2025-08-27 15:20:19 +08:00
Hassan El Mghari
604def8284 formatting and fixed type error 2024-01-26 10:02:33 -08:00
Hassan El Mghari
723c171417 fixed type error in aicommits 2024-01-26 10:00:18 -08:00
Hassan El Mghari
f63dc33385 updated github action to pnpm v8 2024-01-26 09:58:25 -08:00
Hassan El Mghari
7e2f0000b2 edited README 2024-01-26 09:54:43 -08:00
Hassan El Mghari
f33bfeed60 formatting 2024-01-26 09:53:16 -08:00
Wieger Wolf
578572b1d9 docs: type flag/config for Conventional Commits (#215) 2023-05-12 10:29:07 -04:00
Hiroki Osame
7631c2fc0b fix(hook): install from subdirectory
fix #199
2023-05-03 23:24:34 +09:00
Hiroki Osame
dda7f8d424 refactor: organize prompt generation to its own file 2023-05-03 23:10:15 +09:00
Hiroki Osame
eda3462fec test: refactor fixtures 2023-05-03 22:55:58 +09:00
Hiroki Osame
9a841d946f fix: --all flag to only stage tracked files 2023-05-03 22:37:42 +09:00
hiroki osame
e41637d6a1 revert: setting max_tokens based on message size (#207) 2023-05-03 09:26:41 -04:00
Thijs Limmen
0562761dc2 feat: support Conventional Commits via --type flag (#177)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-05-03 09:17:09 -04:00
hiroki osame
f466f0527e refactor: improve commit length enforcement (#206) 2023-05-03 08:53:05 -04:00
Hiroki Osame
f53fb85dd7 refactor: improve prompt 2023-04-26 23:17:30 +09:00
Hiroki Osame
ffbff9194a refactor: improve prompt 2023-04-26 23:11:47 +09:00
Hiroki Osame
91f1918b73 test: improve test data for better results 2023-04-26 21:27:58 +09:00
Rocktim
edce283e9c feat: max-length config (#194)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-04-25 10:55:45 -04:00
Hiroki Osame
4d7712f1e8 fix(config): allow get on config properties without key 2023-04-25 23:24:31 +09:00
Hiroki Osame
e634c1482a test: rename category 2023-04-25 23:05:41 +09:00
Hiroki Osame
7a25bc7d30 test: delete flaky timeout test
OpenAI was too fast and responding under 500ms
2023-04-09 09:07:53 +09:00
Hassan El Mghari
1bf3b0f635 improved prompt to display more consise messages 2023-04-08 11:30:14 -07:00
Rocktim
42a2a39f6f feat: request timeout config (#191)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-04-08 08:24:47 -04:00
Hiroki Osame
75eee29a4e test: create token assertion 2023-04-08 19:39:16 +09:00
Rocktim
9b24444a2e fix: remove hard-coded token limit (#187) 2023-04-04 02:57:10 -04:00
hiroki osame
225558394b fix(hook): Windows support (#176) 2023-04-02 05:54:11 -04:00
8osz01
f6d43f242c perf: use minimal git diff algorithm (#104)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-04-01 23:58:05 -04:00
hiroki osame
5cbc3da9ae docs: recommend gpt-4 as a tip 2023-04-01 10:57:47 -04:00
Matthew Hirst
eee3bbfb84 feat: model configuration to support different models (#183)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
2023-04-01 06:46:12 -04:00
Rocktim
ebe83a493e feat: --all flag (#182)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-04-01 06:19:34 -04:00
chaiyut
ad2533eb2f fix: git diff to respect excluded files (#181) 2023-03-30 05:58:59 -04:00
Mario
fca88df0ab docs: --generate value (#178) 2023-03-28 08:04:25 -04:00
hiroki osame
7b11f5eede test: http proxy (#175) 2023-03-27 06:33:50 -04:00
hiroki osame
e431444f95 test: refactor to run asynchronously (#174) 2023-03-27 05:44:16 -04:00
Sam Büth
a0db0f3ece feat: HTTP + HTTPS proxy support (#139)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-03-27 02:51:51 -04:00
Hiroki Osame
6e02dc8f81 chore: add sponsorship 2023-03-27 12:59:28 +09:00
hiroki osame
7068024f7f fix: tokenize with gpt-3.5-turbo model (#173) 2023-03-26 22:41:36 -04:00
tomaskudlicka
52b62d5a50 feat(cli): --exclude flag for ignoring files (#162)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-03-26 21:24:48 -04:00
Sam Büth
7f6bdd93b5 docs: document configuration options (#155)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-03-26 11:39:55 -04:00
hiroki osame
a32f9c96f3 docs: move roadmap to issues 2023-03-20 13:42:31 -04:00
yalhyane
51a8bb0653 fix: restore cursor visibility in case of errors (#154) 2023-03-14 08:42:34 -04:00
hiroki osame
1b01c2d95a feat: add aic alias (#148) 2023-03-10 09:15:20 -05:00
Hiroki Osame
69e24709c5 docs: improve testing steps 2023-03-10 23:06:16 +09:00
Hiroki Osame
0ebb251d9c chore: move Contribution guide to project root 2023-03-10 22:55:29 +09:00