Skip to content

Commit

Permalink
Merge pull request #117 from CS3219-AY2324S1/change-eval-service-api-key
Browse files Browse the repository at this point in the history
update api key
  • Loading branch information
wengkit1 authored Nov 14, 2023
2 parents 709bc0c + a25aa6b commit 0149d59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ yarn-debug.log*
yarn-error.log*

moonlit*.json
user-service-values.yaml
user-service-values.yaml
eval-service/k8/eval-service-values.yaml
2 changes: 2 additions & 0 deletions eval-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const apiKey = 'e7d334e146msh0b53aee19fe1157p10ef20jsn8aaf56e4b47f';
const baseUrl = 'https://judge0-ce.p.rapidapi.com';
const openaiKey = process.env.NODE_ENV === 'production' ? process.env.OPENAPI_KEY : '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';

console.log("open api key: ", openaiKey);

function extractTextFromHTML(html) {
const $ = cheerio.load(html);
const textElements = [];
Expand Down
8 changes: 0 additions & 8 deletions eval-service/k8/eval-service-values.yaml

This file was deleted.

0 comments on commit 0149d59

Please sign in to comment.