This commit is contained in:
MarkLo 2025-11-21 05:44:26 +08:00
parent e9fb61f1db
commit 540b5a9508
1 changed files with 121 additions and 120 deletions

View File

@ -155,36 +155,8 @@ 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}
name="research_depth"
render={({ field }) => (
<FormItem>
<FormLabel className="text-lg font-semibold"></FormLabel>
<Select
onValueChange={(value) => field.onChange(parseInt(value))}
defaultValue={field.value.toString()}
>
<FormControl>
<SelectTrigger className="h-12 text-base">
<SelectValue placeholder="選擇研究深度" />
</SelectTrigger>
</FormControl>
<SelectContent className="max-h-80">
<SelectItem value="1" className="py-4 text-base cursor-pointer"> - </SelectItem>
<SelectItem value="3" className="py-4 text-base cursor-pointer"> - </SelectItem>
<SelectItem value="5" className="py-4 text-base cursor-pointer"> - </SelectItem>
</SelectContent>
</Select>
<FormDescription>
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<FormField <FormField
control={form.control} control={form.control}
name="ticker" name="ticker"
@ -218,8 +190,39 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
</FormItem> </FormItem>
)} )}
/> />
</div>
{/* 第二行研究深度、快速思維模型、深層思維模型3列 */}
<div className="md:col-span-2 grid grid-cols-1 md:grid-cols-3 gap-6">
<FormField
control={form.control}
name="research_depth"
render={({ field }) => (
<FormItem>
<FormLabel></FormLabel>
<Select
onValueChange={(value) => field.onChange(parseInt(value))}
defaultValue={field.value.toString()}
>
<FormControl>
<SelectTrigger>
<SelectValue placeholder="選擇研究深度" />
</SelectTrigger>
</FormControl>
<SelectContent className="max-h-80">
<SelectItem value="1" className="py-3 cursor-pointer"> - </SelectItem>
<SelectItem value="3" className="py-3 cursor-pointer"> - </SelectItem>
<SelectItem value="5" className="py-3 cursor-pointer"> - </SelectItem>
</SelectContent>
</Select>
<FormDescription>
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
{/* 快速思維模型 */}
<FormField <FormField
control={form.control} control={form.control}
name="shallow_thinking_agent" name="shallow_thinking_agent"
@ -228,7 +231,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
<FormLabel></FormLabel> <FormLabel></FormLabel>
<Select onValueChange={field.onChange} defaultValue={field.value}> <Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl> <FormControl>
<SelectTrigger className="h-12 text-base"> <SelectTrigger>
<SelectValue placeholder="選擇模型" /> <SelectValue placeholder="選擇模型" />
</SelectTrigger> </SelectTrigger>
</FormControl> </FormControl>
@ -243,14 +246,13 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
</SelectContent> </SelectContent>
</Select> </Select>
<FormDescription> <FormDescription>
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
)} )}
/> />
{/* 深層思維模型 */}
<FormField <FormField
control={form.control} control={form.control}
name="deep_thinking_agent" name="deep_thinking_agent"
@ -259,7 +261,7 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
<FormLabel></FormLabel> <FormLabel></FormLabel>
<Select onValueChange={field.onChange} defaultValue={field.value}> <Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl> <FormControl>
<SelectTrigger className="h-12 text-base"> <SelectTrigger>
<SelectValue placeholder="選擇模型" /> <SelectValue placeholder="選擇模型" />
</SelectTrigger> </SelectTrigger>
</FormControl> </FormControl>
@ -274,14 +276,13 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
</SelectContent> </SelectContent>
</Select> </Select>
<FormDescription> <FormDescription>
</FormDescription> </FormDescription>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>
)} )}
/> />
</div>
</div> </div>
{/* API Configuration Section */} {/* API Configuration Section */}