Commit graph

45 commits

Author SHA1 Message Date
Luke Hollenback
e31563c690
Merge pull request #6 from lukehollenback/output-model-response
Got rid of useless debug output and made output token count configurable.
2024-04-02 15:39:40 -06:00
Luke Hollenback
fdb86a5a8c Allowed max response tokens to be configured. 2024-04-02 15:38:11 -06:00
Luke Hollenback
3a5ed26923 Got rid of useless debug message. 2024-04-02 15:30:32 -06:00
Luke Hollenback
b9c6b53cb9
Merge pull request #5 from lukehollenback/output-model-response
Added debug output.
2024-04-02 15:21:38 -06:00
Luke Hollenback
cc6ffd8e44 Added debug output. 2024-04-02 15:19:39 -06:00
Luke Hollenback
a91a2d4956
Merge pull request #2 from lukehollenback/issue-56_json-mode-on-more-models
Forced JSON mode on all models that support it.
2024-04-02 11:25:50 -06:00
Luke Hollenback
9d3b7b8d06 Added custom prompt support. 2024-04-02 11:03:29 -06:00
Luke Hollenback
1eeb9e7f76
Future-proofed change by added regular GPT-4 Turbo model reference. 2024-04-01 18:55:27 -06:00
Luke Hollenback
fcc86cddf7
Forced JSON mode on newer GPT-3 Turbo models as well.
As supported according to https://platform.openai.com/docs/guides/text-generation/json-mode.
2024-04-01 18:51:54 -06:00
Luke Hollenback
bc62780813
Forced JSON mode on all GPT-4 Turbo models newer than the 1106 preview.
In response to https://github.com/freeedcom/ai-codereviewer/issues/56.
2024-04-01 18:48:27 -06:00
Ville Saukkonen
5c13a26204 package and update the model used, remove unused code 2023-12-02 23:08:33 +02:00
Ville Saukkonen
80ca662b5f support the latest gpt 4 and json mode 2023-12-02 23:08:33 +02:00
Ville Saukkonen
0939fc4e8d
Merge pull request #14 from lfsevergnini/fix/access-diff-directly
fix: access diff directly to enable support to private repositories
2023-07-31 18:34:21 +03:00
L.F. Severgnini
110dbf9095
fix: access commit .diff directly 2023-07-12 18:15:40 -03:00
L.F. Severgnini
838fc48abe
add 'OPENAI_API_MODEL' parameter 2023-07-07 17:36:11 -03:00
Ville Saukkonen
a2b67879fe improve the prompt per reviews suggestion 2023-04-23 23:08:51 +03:00
Ville Saukkonen
6176ca5693 try to reduce amount of comment suggestions 2023-04-23 23:06:38 +03:00
Ville Saukkonen
cc415382f7 remove unnecessary logging 2023-04-22 18:06:45 +03:00
Ville Saukkonen
6454621f44 try to use event data instead 2023-04-22 18:02:46 +03:00
Ville Saukkonen
29cd406230 print event path 2023-04-22 17:59:54 +03:00
Ville Saukkonen
97bdebd585 log more 2023-04-22 17:53:56 +03:00
Ville Saukkonen
a6762eb223 restore calling the main 2023-04-22 17:50:14 +03:00
Ville Saukkonen
dd255bf5d5 log the diff 2023-04-22 17:48:41 +03:00
Ville Saukkonen
d60ebfdf3c only review changes between pushes 2023-04-22 17:42:09 +03:00
Ville Saukkonen
3413a8e8a0 try to prevent suggesting to comment the code 2023-04-22 17:12:43 +03:00
Ville Saukkonen
dbf427f89f attempt to fix the malformed request 2023-04-22 17:08:29 +03:00
Ville Saukkonen
903cfb745e try to make it not to ask commenting the code 2023-04-22 16:56:28 +03:00
Ville Saukkonen
0f627714f1 review changed files only 2023-04-22 16:47:51 +03:00
Ville Saukkonen
32f7a8317c
Merge pull request #9 from freeedcom/ignore-deleted-files
ignore deleted files
2023-04-02 17:58:57 +03:00
Ville Saukkonen
1e217661a4 ignore deleted files 2023-04-02 17:57:01 +03:00
Ville Saukkonen
8f38d09f7d try to make prompt for not suggesting commenting more clear 2023-03-30 15:50:42 +03:00
Ville Saukkonen
08e3201b55 simplify ternary 2023-03-28 11:49:16 +03:00
Ville Saukkonen
f67f5f0d41 try to make it refrain from suggesting commenting 2023-03-28 11:46:57 +03:00
Ville Saukkonen
7b2312e5ab - attempt to improve line number commenting
- try to rephrase to be less positive
2023-03-28 11:35:20 +03:00
Ville Saukkonen
27939a4b16 add line number calculation instruction 2023-03-28 01:52:58 +03:00
Ville Saukkonen
e73abe7ded fix array pushing 2023-03-28 01:52:56 +03:00
Ville Saukkonen
bcec1128c8 return empty array for parsing 2023-03-28 01:52:44 +03:00
Ville Saukkonen
626621db03 give instructions in the beginning, ask the AI to return JSON 2023-03-28 01:52:10 +03:00
Ville Saukkonen
30597b305c remove duplicate deletion and addition signs 2023-03-28 01:50:33 +03:00
Ville Saukkonen
6293b88dcd use relaxed quotes 2023-03-28 01:50:33 +03:00
Ville Saukkonen
dfff4cc30c comment on line numbers and avoid giving positive comments 2023-03-23 19:16:20 +02:00
Ville Saukkonen
6fd12f15a2 use PR title to increase the AI context awareness 2023-03-23 01:05:59 +02:00
Ville Saukkonen
f80c0fad0c pass pr description for the context 2023-03-23 00:58:11 +02:00
Ville Saukkonen
8995085d53 improve the prompt silghtly 2023-03-23 00:42:28 +02:00
Ville Saukkonen
b6f3653286 initial commit 2023-03-22 23:16:13 +02:00