This commit is contained in:
parent
e9fb61f1db
commit
540b5a9508
|
|
@ -155,133 +155,134 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 研究深度 - 單欄寬度 */}
|
{/* 第一行:股票代碼、分析日期(2列) */}
|
||||||
<FormField
|
<div className="md:col-span-2 grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||||
control={form.control}
|
<FormField
|
||||||
name="research_depth"
|
control={form.control}
|
||||||
render={({ field }) => (
|
name="ticker"
|
||||||
<FormItem>
|
render={({ field }) => (
|
||||||
<FormLabel className="text-lg font-semibold">研究深度</FormLabel>
|
<FormItem>
|
||||||
<Select
|
<FormLabel>股票代碼</FormLabel>
|
||||||
onValueChange={(value) => field.onChange(parseInt(value))}
|
|
||||||
defaultValue={field.value.toString()}
|
|
||||||
>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="h-12 text-base">
|
<Input placeholder="NVDA" {...field} />
|
||||||
<SelectValue placeholder="選擇研究深度" />
|
|
||||||
</SelectTrigger>
|
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<SelectContent className="max-h-80">
|
<FormDescription>
|
||||||
<SelectItem value="1" className="py-4 text-base cursor-pointer">淺層 - 快速研究,較少的辯論和策略討論</SelectItem>
|
輸入股票代碼(例如:NVDA、AAPL)
|
||||||
<SelectItem value="3" className="py-4 text-base cursor-pointer">中等 - 中等程度,適度的辯論和策略討論</SelectItem>
|
</FormDescription>
|
||||||
<SelectItem value="5" className="py-4 text-base cursor-pointer">深層 - 全面研究,深入的辯論和策略討論</SelectItem>
|
<FormMessage />
|
||||||
</SelectContent>
|
</FormItem>
|
||||||
</Select>
|
)}
|
||||||
<FormDescription>
|
/>
|
||||||
選擇分析的深度和完整性
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="ticker"
|
name="analysis_date"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>股票代碼</FormLabel>
|
<FormLabel>分析日期</FormLabel>
|
||||||
<FormControl>
|
|
||||||
<Input placeholder="NVDA" {...field} />
|
|
||||||
</FormControl>
|
|
||||||
<FormDescription>
|
|
||||||
輸入股票代碼(例如:NVDA、AAPL)
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<FormField
|
|
||||||
control={form.control}
|
|
||||||
name="analysis_date"
|
|
||||||
render={({ field }) => (
|
|
||||||
<FormItem>
|
|
||||||
<FormLabel>分析日期</FormLabel>
|
|
||||||
<FormControl>
|
|
||||||
<Input type="date" {...field} />
|
|
||||||
</FormControl>
|
|
||||||
<FormDescription>
|
|
||||||
選擇分析日期
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* 快速思維模型 */}
|
|
||||||
<FormField
|
|
||||||
control={form.control}
|
|
||||||
name="shallow_thinking_agent"
|
|
||||||
render={({ field }) => (
|
|
||||||
<FormItem>
|
|
||||||
<FormLabel>快速思維模型</FormLabel>
|
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger className="h-12 text-base">
|
<Input type="date" {...field} />
|
||||||
<SelectValue placeholder="選擇模型" />
|
|
||||||
</SelectTrigger>
|
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<SelectContent>
|
<FormDescription>
|
||||||
<SelectItem value="gpt-5.1-2025-11-13">GPT-5.1</SelectItem>
|
選擇分析日期
|
||||||
<SelectItem value="gpt-5-mini-2025-08-07">GPT-5 Mini</SelectItem>
|
</FormDescription>
|
||||||
<SelectItem value="gpt-5-nano-2025-08-07">GPT-5 Nano</SelectItem>
|
<FormMessage />
|
||||||
<SelectItem value="gpt-4.1-mini">GPT-4.1 Mini</SelectItem>
|
</FormItem>
|
||||||
<SelectItem value="gpt-4.1-nano">GPT-4.1 Nano</SelectItem>
|
)}
|
||||||
<SelectItem value="gpt-4o">GPT-4o</SelectItem>
|
/>
|
||||||
<SelectItem value="gpt-4o-mini">GPT-4o Mini</SelectItem>
|
</div>
|
||||||
</SelectContent>
|
|
||||||
</Select>
|
|
||||||
<FormDescription>
|
|
||||||
用於快速回應的模型
|
|
||||||
</FormDescription>
|
|
||||||
<FormMessage />
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* 深層思維模型 */}
|
{/* 第二行:研究深度、快速思維模型、深層思維模型(3列) */}
|
||||||
<FormField
|
<div className="md:col-span-2 grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||||
control={form.control}
|
<FormField
|
||||||
name="deep_thinking_agent"
|
control={form.control}
|
||||||
render={({ field }) => (
|
name="research_depth"
|
||||||
<FormItem>
|
render={({ field }) => (
|
||||||
<FormLabel>深層思維模型</FormLabel>
|
<FormItem>
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<FormLabel>研究深度</FormLabel>
|
||||||
<FormControl>
|
<Select
|
||||||
<SelectTrigger className="h-12 text-base">
|
onValueChange={(value) => field.onChange(parseInt(value))}
|
||||||
<SelectValue placeholder="選擇模型" />
|
defaultValue={field.value.toString()}
|
||||||
</SelectTrigger>
|
>
|
||||||
</FormControl>
|
<FormControl>
|
||||||
<SelectContent>
|
<SelectTrigger>
|
||||||
<SelectItem value="gpt-5.1-2025-11-13">GPT-5.1</SelectItem>
|
<SelectValue placeholder="選擇研究深度" />
|
||||||
<SelectItem value="gpt-5-mini-2025-08-07">GPT-5 Mini</SelectItem>
|
</SelectTrigger>
|
||||||
<SelectItem value="gpt-5-nano-2025-08-07">GPT-5 Nano</SelectItem>
|
</FormControl>
|
||||||
<SelectItem value="gpt-4.1-mini">GPT-4.1 Mini</SelectItem>
|
<SelectContent className="max-h-80">
|
||||||
<SelectItem value="gpt-4.1-nano">GPT-4.1 Nano</SelectItem>
|
<SelectItem value="1" className="py-3 cursor-pointer">淺層 - 快速研究</SelectItem>
|
||||||
<SelectItem value="gpt-4o">GPT-4o</SelectItem>
|
<SelectItem value="3" className="py-3 cursor-pointer">中等 - 適度討論</SelectItem>
|
||||||
<SelectItem value="gpt-4o-mini">GPT-4o Mini</SelectItem>
|
<SelectItem value="5" className="py-3 cursor-pointer">深層 - 深入研究</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
用於複雜推理的模型
|
選擇分析深度
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="shallow_thinking_agent"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>快速思維模型</FormLabel>
|
||||||
|
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||||
|
<FormControl>
|
||||||
|
<SelectTrigger>
|
||||||
|
<SelectValue placeholder="選擇模型" />
|
||||||
|
</SelectTrigger>
|
||||||
|
</FormControl>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="gpt-5.1-2025-11-13">GPT-5.1</SelectItem>
|
||||||
|
<SelectItem value="gpt-5-mini-2025-08-07">GPT-5 Mini</SelectItem>
|
||||||
|
<SelectItem value="gpt-5-nano-2025-08-07">GPT-5 Nano</SelectItem>
|
||||||
|
<SelectItem value="gpt-4.1-mini">GPT-4.1 Mini</SelectItem>
|
||||||
|
<SelectItem value="gpt-4.1-nano">GPT-4.1 Nano</SelectItem>
|
||||||
|
<SelectItem value="gpt-4o">GPT-4o</SelectItem>
|
||||||
|
<SelectItem value="gpt-4o-mini">GPT-4o Mini</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
<FormDescription>
|
||||||
|
快速回應模型
|
||||||
|
</FormDescription>
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="deep_thinking_agent"
|
||||||
|
render={({ field }) => (
|
||||||
|
<FormItem>
|
||||||
|
<FormLabel>深層思維模型</FormLabel>
|
||||||
|
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||||
|
<FormControl>
|
||||||
|
<SelectTrigger>
|
||||||
|
<SelectValue placeholder="選擇模型" />
|
||||||
|
</SelectTrigger>
|
||||||
|
</FormControl>
|
||||||
|
<SelectContent>
|
||||||
|
<SelectItem value="gpt-5.1-2025-11-13">GPT-5.1</SelectItem>
|
||||||
|
<SelectItem value="gpt-5-mini-2025-08-07">GPT-5 Mini</SelectItem>
|
||||||
|
<SelectItem value="gpt-5-nano-2025-08-07">GPT-5 Nano</SelectItem>
|
||||||
|
<SelectItem value="gpt-4.1-mini">GPT-4.1 Mini</SelectItem>
|
||||||
|
<SelectItem value="gpt-4.1-nano">GPT-4.1 Nano</SelectItem>
|
||||||
|
<SelectItem value="gpt-4o">GPT-4o</SelectItem>
|
||||||
|
<SelectItem value="gpt-4o-mini">GPT-4o Mini</SelectItem>
|
||||||
|
</SelectContent>
|
||||||
|
</Select>
|
||||||
|
<FormDescription>
|
||||||
|
複雜推理模型
|
||||||
|
</FormDescription>
|
||||||
|
<FormMessage />
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* API Configuration Section */}
|
{/* API Configuration Section */}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue