Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme and workflow. #60

Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bc62780
Forced JSON mode on all GPT-4 Turbo models newer than the 1106 preview.
lukehollenback Apr 2, 2024
fcc86cd
Forced JSON mode on newer GPT-3 Turbo models as well.
lukehollenback Apr 2, 2024
1eeb9e7
Future-proofed change by added regular GPT-4 Turbo model reference.
lukehollenback Apr 2, 2024
e1acda3
Made main-luke branch run against the fork version.
lukehollenback Apr 2, 2024
9d3b7b8
Added custom prompt support.
lukehollenback Apr 2, 2024
f578b5b
Merge pull request #1 from lukehollenback/custom-prompts
lukehollenback Apr 2, 2024
a91a2d4
Merge pull request #2 from lukehollenback/issue-56_json-mode-on-more-…
lukehollenback Apr 2, 2024
63c8341
Updated action workflow configuration.
lukehollenback Apr 2, 2024
b27b814
Built new version.
lukehollenback Apr 2, 2024
b3da1bd
Updated code_review.yml.
lukehollenback Apr 2, 2024
d46d49b
Changed custom prompt slightly.
lukehollenback Apr 2, 2024
429f5bd
Switched back to old model.
lukehollenback Apr 2, 2024
93befdd
Switched back to the GPT-4 Turbo alias.
lukehollenback Apr 2, 2024
7205b32
Updated the readme to be more accurate and to discuss new features.
lukehollenback Apr 2, 2024
cb26af3
Updated workflow config to make sure all features are being tested.
lukehollenback Apr 2, 2024
cc6ffd8
Added debug output.
lukehollenback Apr 2, 2024
b9c6b53
Merge pull request #5 from lukehollenback/output-model-response
lukehollenback Apr 2, 2024
573f498
Built new version.
lukehollenback Apr 2, 2024
3a5ed26
Got rid of useless debug message.
lukehollenback Apr 2, 2024
fdb86a5
Allowed max response tokens to be configured.
lukehollenback Apr 2, 2024
e31563c
Merge pull request #6 from lukehollenback/output-model-response
lukehollenback Apr 2, 2024
c3d3226
Built new version.
lukehollenback Apr 2, 2024
74d6b7b
Merge branch 'dev' into update-readme-and-workflow
lukehollenback Apr 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added debug output.
  • Loading branch information
lukehollenback committed Apr 2, 2024
commit cc6ffd8e44164930d307dcd1f494dbbbe999c198
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ async function getAIResponse(prompt: string): Promise<Array<{
],
});

console.log(`Completions Response Object: ${response}`);

const res = response.choices[0].message?.content?.trim() || "{}";

console.log(`Trimmed Response Message: ${res}`);

return JSON.parse(res).reviews;
} catch (error) {
console.error("Error:", error);
Expand Down