aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/gpt
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-20 14:18:41 -0400
committerbobzel <zzzman@gmail.com>2024-05-20 14:18:41 -0400
commitdeb55ee338269d51d001f1120cd8d0d6a2c4bc6a (patch)
tree3afc1c127fb816d1ef28be213d8b1288436dd96e /src/client/apis/gpt
parent4ad0dfca6a48b88a53e3add295d41cd0a223b722 (diff)
lint fixes
Diffstat (limited to 'src/client/apis/gpt')
-rw-r--r--src/client/apis/gpt/GPT.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts
index 9efe4ec39..cca9d58f3 100644
--- a/src/client/apis/gpt/GPT.ts
+++ b/src/client/apis/gpt/GPT.ts
@@ -64,7 +64,7 @@ let lastResp = '';
* @returns AI Output
*/
const gptAPICall = async (inputTextIn: string, callType: GPTCallType, prompt?: any) => {
- const inputText = callType === GPTCallType.SUMMARY || callType == GPTCallType.FLASHCARD || GPTCallType.QUIZ ? inputTextIn + '.' : inputTextIn;
+ const inputText = [GPTCallType.SUMMARY, GPTCallType.FLASHCARD, GPTCallType.QUIZ].includes(callType) ? inputTextIn + '.' : inputTextIn;
const opts: GPTCallOpts = callTypeMap[callType];
if (lastCall === inputText) return lastResp;
try {