diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1020f3f..00aaa34 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,7 @@ on: - cron: '0 9 * * *' env: - OPENAI_API_TOKEN: ${{ secrets.OPENAI_API_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_TOKEN }} COHERE_API_TOKEN: ${{ secrets.COHERE_API_TOKEN }} DOKU_URL: ${{ secrets.DOKU_URL }} DOKU_TOKEN: ${{ secrets.DOKU_TOKEN }} diff --git a/package-lock.json b/package-lock.json index eb51b2c..fca5fde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,12 +13,12 @@ "stream": "^0.0.2" }, "devDependencies": { - "chai": "^5.0.0", + "chai": "^5.0.3", "cohere-ai": "^7.7.3", "eslint": "^8.56.0", "eslint-config-google": "^0.14.0", "mocha": "^10.2.0", - "openai": "^4.25.0" + "openai": "^4.26.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1671,9 +1671,9 @@ } }, "node_modules/openai": { - "version": "4.26.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-4.26.0.tgz", - "integrity": "sha512-HPC7tgYdeP38F3uHA5WgnoXZyGbAp9jgcIo23p6It+q/07u4C+NZ8xHKlMShsPbDDmFRpPsa3vdbXYpbhJH3eg==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/openai/-/openai-4.26.1.tgz", + "integrity": "sha512-DvWbjhWbappsFRatOWmu4Dp1/Q4RG9oOz6CfOSjy0/Drb8G+5iAiqWAO4PfpGIkhOOKtvvNfQri2SItl+U7LhQ==", "dev": true, "dependencies": { "@types/node": "^18.11.18", diff --git a/tests/openai.test.mjs b/tests/openai.test.mjs index 1991f64..bf48bf2 100644 --- a/tests/openai.test.mjs +++ b/tests/openai.test.mjs @@ -8,7 +8,7 @@ describe('OpenAI Test', () => { before(async () => { openai = new OpenAI({ - apiKey: process.env.OPENAI_API_TOKEN, + apiKey: process.env.OPENAI_API_KEY, }); await DokuMetry.init({llm: openai, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false}); });