Eric0801
1ad01649f2
fix: add None check for strategy not found in result_view
...
- Add validation to check if strategy exists before processing
- Return user-friendly error message and redirect to result page
- Prevents TypeError: 'NoneType' object is not iterable
- Ensures Railway deployment has correct result_view.html template
2 months ago
Eric0801
cbd580bb12
feat: V2 prompt system with benchmarks and CoT for Demo Day
...
- Add investment_advice_v2.py (educational content)
- Add market_benchmark.py (0050.TW/SPY real-time data)
- Update main.py (CoT parameter support)
- Update llm_service.py (V2 integration)
- Update result_view.html (CoT toggle, marked.js)
- Add render.yaml (deployment config)
- Update .gitignore (protect .env, node_modules, logs)
2 months ago
Eric0801
1c16cb4321
[UX] Remove accordion, restore detailed prompt, keep popover options
...
- Removed accordion functionality as content became too sparse
- Restored detailed prompt structure from llm_service.py
- Enhanced fallback analysis with comprehensive metrics (VaR, R2, etc)
- Kept popover options for different analysis modes
- Updated max_tokens to 3000 for more detailed responses
2 months ago
Eric0801
14407e04d2
feat: improve LLM output styling and prompt structure
...
- Modernize CSS styling with gradients, better typography, and responsive design
- Enhance prompt structure with emoji icons and clearer sections
- Integrate prompts/investment_advice.py templates into llm_service.py
- Add fallback mechanism for prompt templates
- Improve visual hierarchy and readability
2 months ago
Eric0801
45e9ea7ec2
Add LLM investment advice feature with OpenAI integration\n\n- Created llm_service.py with comprehensive LLM advisor\n- Added config_openai.py for API configuration\n- Created prompts/investment_advice.py with prompt templates\n- Updated requirements.txt with OpenAI dependency\n- Modified main.py with /api/llm_advice endpoint\n- Enhanced result_view.html with LLM advice section\n- Added CSS styling for better UI\n- Created LLM_SETUP.md setup guide\n- Added test_llm_service.py for testing\n- Implemented caching, retry logic, and error handling\n- Features: strategy analysis, risk assessment, market insights
3 months ago
joseph
9e7c4c973b
init
2 years ago