From 0fcfa1b3c17fc5849b4abe6f25c4304a036abdb2 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 19 Mar 2024 20:12:47 -0500 Subject: [PATCH] Fix AI action import --- src/photo/form/PhotoForm.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/photo/form/PhotoForm.tsx b/src/photo/form/PhotoForm.tsx index 2fd5ad70..321ab467 100644 --- a/src/photo/form/PhotoForm.tsx +++ b/src/photo/form/PhotoForm.tsx @@ -9,7 +9,11 @@ import { isFormValid, } from '.'; import FieldSetWithStatus from '@/components/FieldSetWithStatus'; -import { createPhotoAction, updatePhotoAction } from '../actions'; +import { + createPhotoAction, + streamImageQueryAction, + updatePhotoAction, +} from '../actions'; import SubmitButtonWithStatus from '@/components/SubmitButtonWithStatus'; import Link from 'next/link'; import { clsx } from 'clsx/lite'; @@ -25,7 +29,6 @@ import ImageBlurFallback from '@/components/ImageBlurFallback'; import { BLUR_ENABLED } from '@/site/config'; import { Tags, sortTagsObjectWithoutFavs } from '@/tag'; import { formatCount, formatCountDescriptive } from '@/utility/string'; -import { streamImageQuery } from '@/services/openai'; import { readStreamableValue } from 'ai/rsc'; import Spinner from '@/components/Spinner'; @@ -126,7 +129,7 @@ export default function PhotoForm({