aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-06-06 11:07:59 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-06-06 11:07:59 -0400
commit08b40f21d9295f36277827ac33085f82c9ee1646 (patch)
treea3fa109edc300200981e1015bfc1ca023fb477f1 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parente7f17e49612ca514fa5b3919f2c7459dcad448f7 (diff)
clean-up
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index 04a14a15f..ad75d320a 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -329,29 +329,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB
this.Document._layout_showTags = true;
});
});
- /*this.Document.$tags_chat = new List<string>();
- gptAPICall(RTFCast(this.Document[Doc.LayoutDataKey(this.Document)])?.Text ?? StrCast(this.Document[Doc.LayoutDataKey(this.Document)]), GPTCallType.CLASSIFYTEXTMINIMAL).then(desc => (this.Document.$tags_chat as List<string>).push(desc));
- this.Document._layout_showTags = true;*/
-
-
- // 2) grab whatever’s actually in the field (either RTF or plain string)
-/*
- const rawText = RTFCast(this.Document[Doc.LayoutDataKey(this.Document)])?.Text ?? StrCast(this.Document[Doc.LayoutDataKey(this.Document)])
-
- // 3) pick minimal vs. full classification based on "[placeholder]" substring
- if (rawText.includes("[placeholder]")) {
- this.Document.$tags_chat = new List<string>();
- gptAPICall(RTFCast(this.Document[Doc.LayoutDataKey(this.Document)])?.Text ?? StrCast(this.Document[Doc.LayoutDataKey(this.Document)]), GPTCallType.CLASSIFYTEXTMINIMAL).then(desc => {
- (this.Document.$tags_chat as List<string>).push(desc);
- });
- } else {
- this.Document.$tags_chat = new List<string>();
- gptAPICall(RTFCast(this.Document[Doc.LayoutDataKey(this.Document)])?.Text ?? StrCast(this.Document[Doc.LayoutDataKey(this.Document)]), GPTCallType.CLASSIFYTEXTFULL).then(desc => {
- (this.Document.$tags_chat as List<string>).push(desc);
- })};
- // 4) make sure the UI will show tags
- this.Document._layout_showTags = true;*/
-
};
leafText = (node: Node) => {