mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-15 23:14:36 -05:00
[PR #352] [CLOSED] Add Gemini support, deferred imports, and improved error handling #10555
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/352
Author: @reblox01
Created: 9/27/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (4)
db52aabinitd84edf0Enhance AI Investment Agent with Gemini model support and improved error handling. Added UI for selecting model provider and streamlined API key input. Implemented helper functions for safe toolkit and agent creation, ensuring robust fallback mechanisms. Updated stock input fields for better user experience.6fe2168Refactor AI Investment Agent to defer imports of optional dependencies until runtime, improving error handling for missing packages. Enhanced model discovery logic for the Gemini wrapper, ensuring a default model is set and providing user feedback on the selected model. Updated comments for clarity and maintainability.aff4b2dMerge branch 'master'📊 Changes
2 files changed (+291 additions, -1 deletions)
View changed files
📝
.gitignore(+2 -1)📝
advanced_ai_agents/single_agent_apps/ai_investment_agent/investment_agent.py(+289 -0)📄 Description
Enhance AI Investment Agent: Gemini support, deferred imports, and improved error handling
investment_agent.py.make_gemini_modelwith model discovery and sensible default model ids; ensuremodelkwarg is set on generate calls to avoid 404s.agnoimports until runtime and add clearst.errormessages with install instructions +st.stop()when critical dependencies are missing.safe_make_yfinance_toolkit,safe_make_agent) and fallback to OpenAIChat when Gemini instantiation fails.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.