Skip to content

Commit

Permalink
fix: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
Yilei-KTH committed Dec 21, 2023
1 parent b67a48b commit 60dc02b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/model/firebaseModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async function getOpenAIKey() {
const docSnap = await getDoc(docRef);
return docSnap.data().key;
}

function modelToPersistence(model) {}

function persistenceToModel(data, model) {}
Expand Down
2 changes: 0 additions & 2 deletions src/model/openai/GetPersonalityMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { getOpenAIKey } from "../firebaseModel";
export const callChatGPT = async (formattedResponses) => {
let requestPrompt = `Questions are answered using a Likert scale, where 7 is agree, 1 is disagree, and 4 is neutral. These questions are designed to test the responder’s personality. Please match the responder’s personality to a Pokemon based on the answer provided below. Reply in this JSON structure: {"pokemon": …, "reason": …}. Here is the questions asked and the user's response: ${formattedResponses}`;

console.log("getOpenAIKey", getOpenAIKey());

let openai = new OpenAI({
apiKey: await getOpenAIKey(),
dangerouslyAllowBrowser: true,
Expand Down

0 comments on commit 60dc02b

Please sign in to comment.