Update package.json contributors and fixed max_tokens bug

This commit is contained in:
Will Poynter 2024-10-01 11:50:44 +01:00
parent 4701f87d09
commit 6386276c5a
No known key found for this signature in database
GPG key ID: AB3BE72A7CA5B1A9
4 changed files with 20 additions and 3 deletions

2
dist/index.js vendored
View file

@ -205,7 +205,7 @@ ${chunk.changes
const queryConfig = {
model: OPENAI_API_MODEL,
temperature: 0.1,
max_tokens: 700,
max_completion_tokens: 700,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -4,6 +4,23 @@
"description": "Open AI powered code reviews",
"main": "lib/main.js",
"author": "Ville Saukkonen",
"contributors": [
{
"name": "Ville Saukkonen",
"url": "https://github.com/villesau"
},
{
"name": "Will Poynter",
"email": "will@researchwiseai.com",
"url": "https://researchwiseai.com"
}
],
"maintainers": [
{
"name": "Will Poynter",
"email": "will@researchwiseai.com"
}
],
"license": "MIT",
"scripts": {
"build": "tsc",

View file

@ -117,7 +117,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
const queryConfig = {
model: OPENAI_API_MODEL,
temperature: 0.1,
max_tokens: 700,
max_completion_tokens: 700,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,