diff options
author | bobzel <zzzman@gmail.com> | 2024-05-20 14:18:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-20 14:18:41 -0400 |
commit | deb55ee338269d51d001f1120cd8d0d6a2c4bc6a (patch) | |
tree | 3afc1c127fb816d1ef28be213d8b1288436dd96e /src/client/apis/gpt | |
parent | 4ad0dfca6a48b88a53e3add295d41cd0a223b722 (diff) |
lint fixes
Diffstat (limited to 'src/client/apis/gpt')
-rw-r--r-- | src/client/apis/gpt/GPT.ts | 2 |
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 { |