diff options
-rw-r--r-- | src/client/apis/gpt/GPT.ts | 10 | ||||
-rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 3 | ||||
-rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 3 |
3 files changed, 6 insertions, 10 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts index 066510a6a..dc969da16 100644 --- a/src/client/apis/gpt/GPT.ts +++ b/src/client/apis/gpt/GPT.ts @@ -5,9 +5,8 @@ export enum GPTTypeStyle { AssignTags = 1, Filter = 2, DocInfo = 3, - ChooseDoc = 4, - GeneralInfo = 5, - SortDocs = 6, + GeneralInfo = 4, + SortDocs = 5, } enum GPTCallType { SUMMARY = 'summary', @@ -136,12 +135,11 @@ const callTypeMap: { [type: string]: GPTCallOpts } = { prompt: `I'm going to provide you with a question. Based on the question, is the user asking you to ${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.Filter}. Filter docs 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`, + Answer with only the number for 2-5. For number one, provide the number (1) and the appropriate tag`, }, subset: { model: 'gpt-4-turbo', diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index ba68504d7..e00aa65d7 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -444,7 +444,7 @@ export class CollectionCardView extends CollectionSubView() { // Split the string into individual list items const listItems = gptOutput.split('======').filter(item => item.trim() !== ''); - if (questionType === GPTTypeStyle.Filter || questionType === GPTTypeStyle.ChooseDoc) { + if (questionType === GPTTypeStyle.Filter) { this.childDocs.forEach(d => { TagItem.removeTagFromDoc(d, '#chat'); }); @@ -471,7 +471,6 @@ export class CollectionCardView extends CollectionSubView() { } break; case GPTTypeStyle.Filter: - case GPTTypeStyle.ChooseDoc: TagItem.addTagToDoc(doc, '#chat'); Doc.setDocFilter(this.Document, 'tags', '#chat', 'check'); break; diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 281748155..0b1ee78e3 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -151,8 +151,7 @@ export class GPTPopup extends ObservableReactComponent<object> { (() => { switch (this.questionTypeNumberToStyle(questionType)) { case GPTTypeStyle.AssignTags: - case GPTTypeStyle.Filter: - case GPTTypeStyle.ChooseDoc: return gptAPICall(this._documentDescriptions, GPTCallType.SUBSET, userPrompt); + case GPTTypeStyle.Filter: return gptAPICall(this._documentDescriptions, GPTCallType.SUBSET, userPrompt); case GPTTypeStyle.SortDocs: return gptAPICall(this._documentDescriptions, GPTCallType.SORT, userPrompt); default: return gptAPICall(StrCast(DocumentView.SelectedDocs().lastElement()?.gptInputText), GPTCallType.INFO, userPrompt); } // prettier-ignore |