diff --git a/frontend/components/analysis/AnalysisForm.tsx b/frontend/components/analysis/AnalysisForm.tsx index eb28f537..ccff22a7 100644 --- a/frontend/components/analysis/AnalysisForm.tsx +++ b/frontend/components/analysis/AnalysisForm.tsx @@ -35,9 +35,9 @@ const formSchema = z.object({ ticker: z.string().min(1, "股票代碼為必填").max(10), analysis_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "日期格式必須為 YYYY-MM-DD"), analysts: z.array(z.string()).min(1, "請至少選擇一位分析師"), - research_depth: z.number().min(1).max(5), - deep_think_llm: z.string(), - quick_think_llm: z.string(), + research_depth: z.number().int().min(1).max(5), + shallow_thinking_agent: z.string().min(1, "請選擇快速思維模型"), + deep_thinking_agent: z.string().min(1, "請選擇深層思維模型"), // API Configuration openai_api_key: z.string().min(20, "請輸入有效的 OpenAI API Key"), @@ -64,9 +64,9 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) { ticker: "NVDA", analysis_date: format(new Date(), "yyyy-MM-dd"), analysts: ["market", "social", "news", "fundamentals"], // 預設全選 - research_depth: 1, - deep_think_llm: "gpt-4o-mini", - quick_think_llm: "gpt-4o-mini", + research_depth: 3, // 預設中等層級 + shallow_thinking_agent: "gpt-4o-mini", + deep_thinking_agent: "gpt-4o", openai_api_key: "", openai_base_url: "https://api.openai.com/v1", alpha_vantage_api_key: "", @@ -161,6 +161,36 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) { /> + {/* 研究深度 */} + ( + + 研究深度 + + + 選擇分析的深度和完整性 + + + + )} + /> + + {/* 深層思維模型 */} ( - 深度思考模型 + 深層思維模型 + + + + + + + GPT-5.1 + GPT-5 Mini + GPT-5 Nano + GPT-4.1 Mini + GPT-4.1 Nano + GPT-4o + GPT-4o Mini + + + + 用於快速回應的模型 + + + + )} + /> {/* API Configuration Section */} diff --git a/frontend/lib/types.ts b/frontend/lib/types.ts index b8a1c799..8bc68be9 100644 --- a/frontend/lib/types.ts +++ b/frontend/lib/types.ts @@ -7,8 +7,8 @@ export interface AnalysisRequest { analysis_date: string; analysts?: string[]; research_depth?: number; - deep_think_llm?: string; - quick_think_llm?: string; + shallow_thinking_agent?: string; + deep_thinking_agent?: string; // API Configuration openai_api_key: string;