@@ -167,6 +179,62 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
/>
+ {/* API Configuration Section */}
+
+
API 配置
+
+ (
+
+ OpenAI API Key(必填)
+
+
+
+
+ 您的 OpenAI API Key(用於 LLM 推理)
+
+
+
+ )}
+ />
+
+ (
+
+ OpenAI Base URL(選填)
+
+
+
+
+ API 基礎網址(預設為 OpenAI 官方)
+
+
+
+ )}
+ />
+
+ (
+
+ Alpha Vantage API Key(選填)
+
+
+
+
+ 用於獲取更詳細的財務數據(可選)
+
+
+
+ )}
+ />
+
+
diff --git a/frontend/lib/types.ts b/frontend/lib/types.ts
index 62e34df8..6d6072a0 100644
--- a/frontend/lib/types.ts
+++ b/frontend/lib/types.ts
@@ -9,6 +9,11 @@ export interface AnalysisRequest {
research_depth?: number;
deep_think_llm?: string;
quick_think_llm?: string;
+
+ // API Configuration
+ openai_api_key: string;
+ openai_base_url?: string;
+ alpha_vantage_api_key?: string;
}
export interface AnalysisResponse {