use relaxed quotes

This commit is contained in:
Ville Saukkonen 2023-03-23 19:24:43 +02:00
parent dfff4cc30c
commit 6293b88dcd
3 changed files with 5 additions and 2 deletions

4
dist/index.js vendored

@ -119,6 +119,7 @@ ${prDetails.description}
Please provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. Don't give positive comments. Use the description only for the overall context and only comment the code. Please provide comments and suggestions ONLY if there is something to improve, write the answer in Github markdown. Don't give positive comments. Use the description only for the overall context and only comment the code.
Diff to review: Diff to review:
--- ---
${chunk.content} ${chunk.content}
${chunk.changes ${chunk.changes
@ -136,7 +137,7 @@ function getAIResponse(prompt) {
const queryConfig = { const queryConfig = {
model: "gpt-4", model: "gpt-4",
temperature: 0.2, temperature: 0.2,
max_tokens: 400, max_tokens: 700,
top_p: 1, top_p: 1,
frequency_penalty: 0, frequency_penalty: 0,
presence_penalty: 0, presence_penalty: 0,
@ -153,6 +154,7 @@ function getAIResponse(prompt) {
delimiter: "\t", delimiter: "\t",
columns: ["line_number", "review_comment"], columns: ["line_number", "review_comment"],
skip_empty_lines: true, skip_empty_lines: true,
relax_quotes: true,
}); });
} }
catch (error) { catch (error) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -138,6 +138,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
delimiter: "\t", delimiter: "\t",
columns: ["line_number", "review_comment"], columns: ["line_number", "review_comment"],
skip_empty_lines: true, skip_empty_lines: true,
relax_quotes: true,
}); });
} catch (error) { } catch (error) {
console.error("Error:", error); console.error("Error:", error);