aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/gpt/GPT.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/apis/gpt/GPT.ts')
-rw-r--r--src/client/apis/gpt/GPT.ts20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts
index dc4607b94..066510a6a 100644
--- a/src/client/apis/gpt/GPT.ts
+++ b/src/client/apis/gpt/GPT.ts
@@ -1,6 +1,14 @@
import { ChatCompletionMessageParam, Image } from 'openai/resources';
import { openai } from './setup';
+export enum GPTTypeStyle {
+ AssignTags = 1,
+ Filter = 2,
+ DocInfo = 3,
+ ChooseDoc = 4,
+ GeneralInfo = 5,
+ SortDocs = 6,
+}
enum GPTCallType {
SUMMARY = 'summary',
COMPLETION = 'completion',
@@ -127,12 +135,12 @@ const callTypeMap: { [type: string]: GPTCallOpts } = {
temp: 0,
prompt: `I'm going to provide you with a question.
Based on the question, is the user asking you to
- 1. Assigns docs with tags(like star / heart etc)/labels,
- 2. Filter docs,
- 3. Provide information about a specific doc
- 4. Provide a specific doc based on a question/information
- 5. Provide general information
- 6. Put cards in a specific order.
+ ${GPTTypeStyle.AssignTags}. Assigns docs with tags(like star / heart etc)/labels,
+ ${GPTTypeStyle.ChooseDoc}. Filter docs,
+ ${GPTTypeStyle.DocInfo}. Provide information about a specific doc
+ ${GPTTypeStyle.Filter}. Provide a specific doc based on a question/information
+ ${GPTTypeStyle.GeneralInfo}. Provide general information
+ ${GPTTypeStyle.SortDocs}. Put cards in a specific order.
Answer with only the number for 2-6. For number one, provide the number (1) and the appropriate tag`,
},
subset: {