generated from ztimson/template
Fixed review?
This commit is contained in:
@@ -20,11 +20,11 @@ dotenv.config({path: '.env.local', override: true});
|
||||
model = process.env['AI_MODEL'],
|
||||
token = process.env['AI_TOKEN'];
|
||||
|
||||
console.log(`Reviewing: ${root}\n`);
|
||||
const comments = [];
|
||||
const commit = await $`cd ${root} && git log -1 --pretty=format:%H`;
|
||||
const gitDiff = await $`cd ${root} && git diff ${branch}`;
|
||||
|
||||
console.log(`Reviewing: ${root}\n`);
|
||||
|
||||
let options = {ollama: {model, host}};
|
||||
if(host === 'anthropic') options = {anthropic: {model, token}};
|
||||
|
||||
Reference in New Issue
Block a user