diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-09 13:54:32 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-09 13:54:32 -0400 |
| commit | a0b0dc415f21535782239b471bd4b4942dea6daf (patch) | |
| tree | 13e4ec13909e1cddbd48e89ab5122b1138813f84 /src/client/apis/gpt/GPT.ts | |
| parent | 9d629f60f90628478f46b219f7ad8a9093972ae3 (diff) | |
removing more commented out code, fixing lint. fixed carousel3Dview child active
Diffstat (limited to 'src/client/apis/gpt/GPT.ts')
| -rw-r--r-- | src/client/apis/gpt/GPT.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts index 88352110b..e8c6cc02f 100644 --- a/src/client/apis/gpt/GPT.ts +++ b/src/client/apis/gpt/GPT.ts @@ -72,7 +72,6 @@ const callTypeMap: { [type: string]: GPTCallOpts } = { model: 'gpt-4-turbo', maxTokens: 1024, temp: 0.1, //0.3 - prompt: '', prompt: "BRIEFLY (<50 words) describe any differences between the rubric and the user's answer answer in second person. If there are no differences, say correct", }, @@ -125,7 +124,7 @@ let lastResp = ''; * @param inputText Text to process * @returns AI Output */ -const gptAPICall = async (inputTextIn: string, callType: GPTCallType, prompt?: any, dontCache?: boolean) => { +const gptAPICall = async (inputTextIn: string, callType: GPTCallType, prompt?: string, dontCache?: boolean) => { const inputText = [GPTCallType.SUMMARY, GPTCallType.FLASHCARD, GPTCallType.QUIZ, GPTCallType.STACK].includes(callType) ? inputTextIn + '.' : inputTextIn; const opts: GPTCallOpts = callTypeMap[callType]; if (lastCall === inputText && dontCache !== true) return lastResp; |
