mlarhrouch/azure-pipeline-gpt-pr-review

Prompt not defined

Closed this issue · 1 comments

I am trying to use this with Azure OpenAI, but it seems the const prompt has been deleted in the latest PR in review.ts, but the code still references it:

else if (aoiEndpoint) {
      const request = await fetch(aoiEndpoint, {
        method: 'POST',
        headers: { 'api-key': `${apiKey}`, 'Content-Type': 'application/json' },
        body: JSON.stringify({
          max_tokens: 500,
          messages: [{
            role: "user",
            content: prompt
          }]
        })
      });

Am I correct here or maybe I am missing something?

Version 0.12.3 fixes this issue.