aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-04-17 15:15:46 -0400
committerbobzel <zzzman@gmail.com>2023-04-17 15:15:46 -0400
commitc2d3e35ff0ce5200776f31bc5030dc3041d19371 (patch)
treee85522f4205899a375d00175c780d0bd8f4380b9 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parentbc0e32b2d4099faff7f93128c20c814a234e9142 (diff)
minor cleanup
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index ff4e725ed..3e60441aa 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -858,14 +858,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps
this._downX = this._downY = Number.NaN;
};
- mockGPT = async (): Promise<string> => {
- return new Promise((resolve, reject) => {
- setTimeout(() => {
- resolve('Mock GPT Call.');
- }, 2000);
- });
- };
-
animateRes = (resIndex: number) => {
if (resIndex < this.gptRes.length) {
this.dataDoc.text = (this.dataDoc.text as RichTextField)?.Text + this.gptRes[resIndex];
@@ -878,7 +870,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps
askGPT = action(async () => {
try {
let res = await gptAPICall((this.dataDoc.text as RichTextField)?.Text, GPTCallType.COMPLETION);
- // let res = await this.mockGPT();
if (res) {
this.gptRes = res;
this.animateRes(0);