Commit Graph

63 Commits

Author SHA1 Message Date
史悦
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
f33bfeed60 formatting 2024-01-26 09:53:16 -08: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
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
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
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
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
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
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
yalhyane
51a8bb0653 fix: restore cursor visibility in case of errors (#154) 2023-03-14 08:42:34 -04:00
Jason Tarver
afad8210fc feat: use new gpt-3.5-turbo model (#123)
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
2023-03-10 08:41:10 -05:00
hiroki osame
fed577b960 fix: content-length miscalculation bug (#147) 2023-03-10 08:25:38 -05:00
Hiroki Osame
09c2c98e05 fix: dont log unknown config property 2023-03-10 15:39:13 +09:00
hiroki osame
ba0d6fdd25 fix: loosen api key validation (#143) 2023-03-09 07:56:34 -05:00
Hiroki Osame
be462f6498 refactor: reuse config validators on cli config 2023-03-09 21:50:52 +09:00
Vicente Gutiérrez
58ce61eab8 feat: language support via locale config (#96)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
2023-03-09 06:13:58 -05:00
hiroki osame
4876e8d966 fix: handle unknown config property (#141) 2023-03-09 04:02:00 -05:00
hiroki osame
5fe127d377 feat: show error stack on unknown error (#124)
* feat: show error stack on unknown error

* improve message
2023-03-03 00:58:22 -05:00
Hiroki Osame
dd5e11a403 chore: patch clack type error 2023-03-02 14:21:26 +09:00
Simon Liang
c194c917d7 refactor: use tokenizer to accurately count tokens (#114)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
2023-03-01 21:00:52 -05:00
hiroki osame
5f2efc83f5 feat: link OpenAI status on 500 error (#121) 2023-03-01 20:16:47 -05:00
Spenser Black
ac6972c506 feat: exclude all *.lock files (#108)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
2023-03-01 20:01:27 -05:00
hiroki osame
f8fb0e246a refactor: use custom OpenAI "fetch" (#106) 2023-03-01 19:56:56 -05:00
hiroki osame
5a506b750e fix: improve large diff error message (#101) 2023-02-22 04:19:05 -05:00
hiroki osame
75d77001b1 fix: handle unreachable openai.com (#100) 2023-02-22 00:16:01 -05:00
hiroki osame
13b06e8c16 refactor: hooks to be called via aicommits (#99) 2023-02-22 00:01:11 -05:00
hiroki osame
0b80a0031e feat: git hook (#95) 2023-02-21 08:08:44 -05:00
Hiroki Osame
0d3f35c135 feat: config command (#71) 2023-02-21 22:04:40 +09:00
hiroki osame
65d753a1d6 feat: pass down argv to git commit (#70) 2023-02-21 07:52:42 -05:00
Marcus Ziadé
caaf165067 feat: use imperative present tense in prompt (#84) 2023-02-20 05:10:19 -05:00
hiroki osame
68fc8ad736 feat: show multiple options (#64) 2023-02-16 18:44:46 -05:00
kade
3f10195d03 feat: remove ending period (#59)
Co-authored-by: hiroki osame <hiroki.osame@gmail.com>
2023-02-16 08:59:44 -05:00