Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
snehara99 committed Sep 15, 2023
1 parent 96261a0 commit 853f46d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: snehara99/[email protected].6.5
- uses: snehara99/[email protected].7
with:
token: ${{ github.token }}
api-key: ${{ secrets.API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The issues and their corresponding labels.

```yaml
name: Suggest Labels
- uses: snehara99/[email protected].6
- uses: snehara99/[email protected].7
with:
token: ${{ github.token }}
api-key: ${{ secrets.API_KEY }}
Expand Down
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ async function run() {
const endpoint = core.getInput('endpoint');
const deploymentID = core.getInput('deployment-id');

console.log(apiKey.length);
console.log(endpoint);
console.log(deploymentID);

// const apiKey = '682b7d0a048740bc94e853531a7e17b0';
// const endpoint = 'https://americasopenai.azure-api.net';
// const deploymentID = 'gpt-35-turbo-16k';
Expand All @@ -52,8 +48,7 @@ async function run() {

var issueLabels = {};

// 0 seconds worked fine, but I have it at 1 right now
const delayMS = 1000;
const delayMS = 5000;
const delay = ms => new Promise(res => setTimeout(res, ms));


Expand All @@ -72,6 +67,7 @@ async function run() {
},
];
messages.push({ role: "user", content: userMessageText });
console.log('get chat completion call');
const completion = await client.getChatCompletions(
deploymentID,
messages,
Expand Down

0 comments on commit 853f46d

Please sign in to comment.