mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 09:36:47 +00:00
Moved to defaults for most options
This commit is contained in:
parent
6386276c5a
commit
9bacb71539
3 changed files with 1 additions and 9 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -204,11 +204,7 @@ ${chunk.changes
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const queryConfig = {
|
const queryConfig = {
|
||||||
model: OPENAI_API_MODEL,
|
model: OPENAI_API_MODEL,
|
||||||
temperature: 0.1,
|
|
||||||
max_completion_tokens: 700,
|
max_completion_tokens: 700,
|
||||||
top_p: 1,
|
|
||||||
frequency_penalty: 0,
|
|
||||||
presence_penalty: 0,
|
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const response = yield openai.chat.completions.create(
|
const response = yield openai.chat.completions.create(
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -116,11 +116,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
||||||
}> | null> {
|
}> | null> {
|
||||||
const queryConfig = {
|
const queryConfig = {
|
||||||
model: OPENAI_API_MODEL,
|
model: OPENAI_API_MODEL,
|
||||||
temperature: 0.1,
|
|
||||||
max_completion_tokens: 700,
|
max_completion_tokens: 700,
|
||||||
top_p: 1,
|
|
||||||
frequency_penalty: 0,
|
|
||||||
presence_penalty: 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue