diff options
| author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-08-18 17:41:51 -0400 |
|---|---|---|
| committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-08-18 17:41:51 -0400 |
| commit | ad2f3695ddfb4a7bec17ddbdf6e7011862936bc4 (patch) | |
| tree | 05333c5bfaa7342829ff550388778db9e363d5b1 /src/client/views/pdf/GPTPopup | |
| parent | bce4589c0bd871437c83bf44a6a818d01b9bf0f2 (diff) | |
added gen_fill_children field
Diffstat (limited to 'src/client/views/pdf/GPTPopup')
| -rw-r--r-- | src/client/views/pdf/GPTPopup/GPTPopup.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx index 943c38d42..43fd8df16 100644 --- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx +++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx @@ -11,8 +11,7 @@ import { Button, IconButton, Type } from 'browndash-components'; import { NumCast, StrCast } from '../../../../fields/Types'; import { CgClose } from 'react-icons/cg'; import { AnchorMenu } from '../AnchorMenu'; -import { gptAPICall, gptImageCall } from '../../../apis/gpt/GPT'; -import { RichTextField } from '../../../../fields/RichTextField'; +import { gptImageCall } from '../../../apis/gpt/GPT'; import { Networking } from '../../../Network'; import { Utils } from '../../../../Utils'; @@ -122,9 +121,7 @@ export class GPTPopup extends React.Component<GPTPopupProps> { this.setLoading(true); try { - // make this support multiple images let image_urls = await gptImageCall(this.imgDesc); - console.log(image_urls); if (image_urls && image_urls[0]) { const [result] = await Networking.PostToServer('/uploadRemoteImage', { sources: [image_urls[0]] }); const source = Utils.prepend(result.accessPaths.agnostic.client); |
