aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/gpt/GPT.ts
diff options
context:
space:
mode:
authoraidahosa1 <aisosa_idahosa@brown.edu>2024-06-04 12:48:41 -0400
committeraidahosa1 <aisosa_idahosa@brown.edu>2024-06-04 12:48:41 -0400
commit6bfa2fd696a306a984b29c6ea11fa66e93e0474c (patch)
tree924bbcdad4bbef3e13ea211d267bd6d8ea74964f /src/client/apis/gpt/GPT.ts
parenta7f5bd1c2438f95252f5515d7226b491dfb5183b (diff)
changes
Diffstat (limited to 'src/client/apis/gpt/GPT.ts')
-rw-r--r--src/client/apis/gpt/GPT.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts
index 05007960d..5dc818db8 100644
--- a/src/client/apis/gpt/GPT.ts
+++ b/src/client/apis/gpt/GPT.ts
@@ -70,6 +70,11 @@ const gptAPICall = async (inputTextIn: string, callType: GPTCallType, prompt?: a
try {
lastCall = inputText;
+ // const configuration: ClientOptions = {
+ // apiKey: process.env.OPENAI_KEY,
+ // dangerouslyAllowBrowser: true,
+ // };
+
const usePrompt = prompt ? opts.prompt + prompt : opts.prompt;
const messages: ChatCompletionMessageParam[] = [
{ role: 'system', content: usePrompt },