|
|
@@ -69,6 +69,7 @@ import { uploadImage as uploadImageRemote } from "@/app/utils/chat";
|
|
|
import dynamic from "next/dynamic";
|
|
|
|
|
|
import { ChatControllerPool } from "../client/controller";
|
|
|
+import { DalleSize } from "../typing";
|
|
|
import { Prompt, usePromptStore } from "../store/prompt";
|
|
|
import Locale from "../locales";
|
|
|
|
|
|
@@ -484,9 +485,9 @@ export function ChatActions(props: {
|
|
|
const [showUploadImage, setShowUploadImage] = useState(false);
|
|
|
|
|
|
const [showSizeSelector, setShowSizeSelector] = useState(false);
|
|
|
- const dalle3Sizes = ["1024x1024", "1792x1024", "1024x1792"];
|
|
|
+ const dalle3Sizes: DalleSize[] = ["1024x1024", "1792x1024", "1024x1792"];
|
|
|
const currentSize =
|
|
|
- chatStore.currentSession().mask.modelConfig?.size || "1024x1024";
|
|
|
+ chatStore.currentSession().mask.modelConfig?.size ?? "1024x1024";
|
|
|
|
|
|
useEffect(() => {
|
|
|
const show = isVisionModel(currentModel);
|