From a25aa6b94d9ebe902d2230f1db28b81c84de4a13 Mon Sep 17 00:00:00 2001 From: imraj singh <92265647+imrajsinghsandhu@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:00:47 +0800 Subject: [PATCH] update api key --- .gitignore | 3 ++- eval-service/index.js | 2 ++ eval-service/k8/eval-service-values.yaml | 8 -------- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 eval-service/k8/eval-service-values.yaml diff --git a/.gitignore b/.gitignore index 6b39fbb..2efb647 100644 --- a/.gitignore +++ b/.gitignore @@ -28,4 +28,5 @@ yarn-debug.log* yarn-error.log* moonlit*.json -user-service-values.yaml \ No newline at end of file +user-service-values.yaml +eval-service/k8/eval-service-values.yaml diff --git a/eval-service/index.js b/eval-service/index.js index d177c85..29cea79 100644 --- a/eval-service/index.js +++ b/eval-service/index.js @@ -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 = []; diff --git a/eval-service/k8/eval-service-values.yaml b/eval-service/k8/eval-service-values.yaml deleted file mode 100644 index 6bd2847..0000000 --- a/eval-service/k8/eval-service-values.yaml +++ /dev/null @@ -1,8 +0,0 @@ -secrets: - openapi_key: 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 - -service: - type: NodePort - port: 7000 - targetPort: 7000 - nodePort: 30300 \ No newline at end of file