Skip to content

Commit

Permalink
update gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharonfish committed Apr 24, 2024
1 parent 1aa19a5 commit b24eb2d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ const DYNAMIC_FIXING_URL =
const DYNAMIC_HINT_TEMPLATE =
"<{problem_title}.> <{problem_subtitle}.> <{question_title}.> <{question_subtitle}.> <Student's answer is: {student_answer}.> <The correct answer is: {correct_answer}.> Please give a hint for this.";

const OPENAI_KEY = "tl.9RfF4SotyLjorUgJX{72U4CmclGKwZtTw:kP{nxYTUwiy2ir";

const decode = (value) => {
let decoded = "";
for (let i = 0; i < value.length; i++) {
decoded += String.fromCharCode(value.charCodeAt(i) - 1);
}
return decoded;
};
console.log("decoded: ", decode(OPENAI_KEY));
const OPENAI_KEY = "tl.flbXTG1gMx:VRO[tMVodU4CmclGKu15L5oZ53x{6pTHXnf3O";

// const decode = (value) => {
// let decoded = "";
// for (let i = 0; i < value.length; i++) {
// decoded += String.fromCharCode(value.charCodeAt(i) + 1);
// }
// return decoded;
// };
// console.log("decoded: ", decode(OPENAI_KEY));

// const coursePlans = courses.sort((a, b) => a.courseName.localeCompare(b.courseName));
const coursePlans = courses;
Expand Down

0 comments on commit b24eb2d

Please sign in to comment.