We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b427f83 commit e738ec2Copy full SHA for e738ec2
main.ts
@@ -265,9 +265,12 @@ async function main(
265
const functionName = toolCall.function.name;
266
const functionToCall = availableFunctions[functionName];
267
const functionArgs = JSON.parse(toolCall.function.arguments);
268
+ if ('token' in functionArgs) {
269
+ functionArgs.token = gh_token;
270
+ }
271
console.log('Function arguments:', functionArgs);
272
const functionResponse = await functionToCall(
- gh_token,
273
+ functionArgs.token,
274
functionArgs.username,
275
functionArgs.repoName,
276
functionArgs.pullRequestNumber,
0 commit comments