This commit is contained in:
MarkLo 2025-11-20 22:56:35 +08:00
parent 0fd7df06dd
commit 03dde27de1
3 changed files with 6 additions and 8 deletions

View File

@ -11,7 +11,7 @@ class AnalysisRequest(BaseModel):
ticker: str = Field(..., description="Stock ticker symbol (e.g., 'NVDA', 'AAPL')", min_length=1, max_length=10)
analysis_date: str = Field(..., description="Analysis date in YYYY-MM-DD format")
analysts: Optional[List[str]] = Field(
default=["market", "sentiment", "news", "fundamentals"],
default=["market", "social", "news", "fundamentals"],
description="List of analysts to include in analysis"
)
research_depth: Optional[int] = Field(default=1, ge=1, le=5, description="Research depth (1-5)")

View File

@ -70,7 +70,7 @@ class TradingService:
try:
# Default analysts if not provided
if analysts is None:
analysts = ["market", "sentiment", "news", "fundamentals"]
analysts = ["market", "social", "news", "fundamentals"]
# Dynamically set environment variables for this request
import os
@ -142,7 +142,7 @@ class TradingService:
def get_available_analysts(self) -> List[str]:
"""Get list of available analyst types"""
return ["market", "sentiment", "news", "fundamentals"]
return ["market", "social", "news", "fundamentals"]
def get_available_llms(self) -> List[str]:
"""Get list of available OpenAI LLM models"""

View File

@ -133,11 +133,9 @@ export function AnalysisForm({ onSubmit, loading = false }: AnalysisFormProps) {
</SelectTrigger>
</FormControl>
<SelectContent>
<SelectItem value="1">1 - </SelectItem>
<SelectItem value="2">2 - </SelectItem>
<SelectItem value="3">3 - </SelectItem>
<SelectItem value="4">4 - </SelectItem>
<SelectItem value="5">5 - </SelectItem>
<SelectItem value="1"> - </SelectItem>
<SelectItem value="3"> - </SelectItem>
<SelectItem value="5"> - </SelectItem>
</SelectContent>
</Select>
<FormDescription>