🎥 Make videos programmatically with React
Revert default model to low reasoning and remove initialModel prop
ASchwad4c18e9e42529
diff --git a/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx b/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsxindex 9e52662372..8dbb77e952 100644--- a/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx+++ b/packages/template-prompt-to-motion-graphics/src/app/generate/page.tsx@@ -8,8 +8,7 @@ import { CodeEditor } from "../../components/CodeEditor";import { AnimationPlayer } from "../../components/AnimationPlayer";import { PageLayout } from "../../components/PageLayout";import { ChatSidebar, type ChatSidebarRef } from "../../components/ChatSidebar";-import type { StreamPhase, GenerationErrorType, ModelId } from "../../types/generation";-import { MODELS } from "../../types/generation";+import type { StreamPhase, GenerationErrorType } from "../../types/generation";import { examples } from "../../examples/code";import { useAnimationState } from "../../hooks/useAnimationState";import { useConversationState } from "../../hooks/useConversationState";@@ -25,7 +24,6 @@ const MAX_CORRECTION_ATTEMPTS = 3;function GeneratePageContent() {const searchParams = useSearchParams();const initialPrompt = searchParams.get("prompt") || "";- const initialModel = (searchParams.get("model") as ModelId) || MODELS[2].id;// If we have an initial prompt from URL, start in streaming state// so syntax highlighting is disabled from the beginning@@ -264,8 +262,6 @@ function GeneratePageContent() {fps={fps}durationInFrames={durationInFrames}currentFrame={currentFrame}- // Initial model from URL- initialModel={initialModel}/>{/* Main content area */}diff --git a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsxindex 2b2290d616..a8ac6b1e71 100644--- a/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/ChatSidebar/ChatSidebar.tsx@@ -82,8 +82,6 @@ interface ChatSidebarProps {fps?: number;durationInFrames?: number;currentFrame?: number;- // Initial model from URL- initialModel?: ModelId;}export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>(@@ -114,11 +112,10 @@ export const ChatSidebar = forwardRef<ChatSidebarRef, ChatSidebarProps>(fps = 30,durationInFrames = 150,currentFrame = 0,- initialModel,},ref,) {- const [model, setModel] = useState<ModelId>(initialModel ?? MODELS[2].id);+ const [model, setModel] = useState<ModelId>(MODELS[1].id);const messagesEndRef = useRef<HTMLDivElement>(null);const promptRef = useRef<string>("");diff --git a/packages/template-prompt-to-motion-graphics/src/components/LandingPageInput.tsx b/packages/template-prompt-to-motion-graphics/src/components/LandingPageInput.tsxindex e00dd063a1..7515099596 100644--- a/packages/template-prompt-to-motion-graphics/src/components/LandingPageInput.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/LandingPageInput.tsx@@ -48,7 +48,7 @@ export function LandingPageInput({showCodeExamplesLink = false,}: LandingPageInputProps) {const [prompt, setPrompt] = useState("");- const [model, setModel] = useState<ModelId>("gpt-5.2:medium");+ const [model, setModel] = useState<ModelId>("gpt-5.2:low");const [attachedImages, setAttachedImages] = useState<string[]>([]);const [isDragging, setIsDragging] = useState(false);const fileInputRef = useRef<HTMLInputElement>(null);