Spaces:
Sleeping
Sleeping
Commit History
-
FIX: Avoid mixed-content by using root_path static URLs in template
da16287 -
FIX: Generate static asset URLs via request.url_for for HF Spaces path compatibility
e1b869e -
DEBUG: Add endpoints to diagnose static file serving issues (/debug/files, /debug/css-test)
b0f7665 -
UPGRADE: Use langchain-ollama package with OllamaLLM (removes Ollama deprecation warning)
cb48d61 -
FIX: Use absolute paths for static files and templates in HF Spaces (enables CSS loading)
cddce69 -
docs: Add comprehensive LangChain 0.3.27 import reference guide
9e7df56 -
FIX: Use langchain_classic.memory for ConversationBufferWindowMemory (langchain 0.3.27 has memory under langchain_classic, not langchain)
ac70217 -
Fix langchain imports: use langchain.memory for ConversationBufferWindowMemory, use langchain_core.tools for BaseTool (langchain 0.3.27 compatibility)
a68baeb -
Fix: Resolve all import errors and dependency issues
- Fix langchain imports: memory and tools now from langchain_community - Add missing 'requests' package to requirements - Correct google-generativeai package name in pyproject.toml - Sync requirements.txt and pyproject.toml dependencies - Remove unused packages (gradio, streamlit, trafilatura) from pyproject.toml1691b3a -
Fix: Add zstd dependency for Ollama installation on HuggingFace Spaces
f767590 -
feat: chat interface upgrades
5c00819 -
Resolved conflicts by keeping HuggingFace versions
14cc93b
-
🚀 CRITICAL FIX: Infinite processing timeout issue
Priyanshi Saxena- Added 30s timeout to Ollama/Gemini tool analysis (was hanging indefinitely) - Added fallback tool selection when analysis times out - Simplified prompts for faster LLM processing - Optimized AI safety prompts to reduce context length - Fixed memory manager integration - Now system will respond within 60-90s maximum instead of infinite hang FIXES: - Tool analysis infinite hang ⚡ - Context cancellation errors ⚡ - Memory integration working ⚡ - Faster response times ⚡d44409c -
Merge branch 'main' of https://huggingface.co/spaces/ArchCoder/web3-copilot
Priyanshi Saxenaa6b557d -
Update src/agent/research_agent.py
Verified signature6dd0150 -
timeout changed
Priyanshi Saxena68d7321 -
demo: changes
Priyanshi Saxena9086b91 -
fix: memory manager
Priyanshi Saxena65703d9 -
fix: Add comprehensive response cleaning validation
Priyanshi Saxena- Added version tracking for deployment debugging - Enhanced logging to track content extraction process - Added critical safety check for LangChain metadata in final responses - Improved debugging for Hugging Face Spaces deployment issues - Added explicit validation to prevent raw metadata from being returned923b4b3 -
fix: Clean LLM responses and fix variable scope errors
Priyanshi Saxena- Fixed Gemini response cleaning to extract content properly from LangChain objects - Fixed Ollama response cleaning to handle string conversion - Fixed variable scope error in timeout handler (btc_data -> summary_data) - Fixed DeFi TVL sorting error by filtering out None values - Enhanced error handling in fallback response mechanism - Improved response content extraction for both LLMsa4b05e9 -
feat: Replace CoinGecko with CryptoCompare/Etherscan APIs
Priyanshi Saxena- Updated tool analysis prompts to prioritize available APIs (CryptoCompare, Etherscan) - Removed CoinGecko from suggested tools since no API key available - Modified ChartDataTool to use CryptoCompare instead of CoinGecko for price data - Added conditional CoinGecko tool initialization (only if API key present) - Updated market overview to use CryptoCompare data source - Enhanced tool selection logic to exclude unavailable APIs - Added comprehensive testing for tool selection functionalityfaf01ab -
feat: Replace CoinGecko with CryptoCompare/Etherscan APIs
Priyanshi Saxena- Updated tool analysis prompts to prioritize available APIs (CryptoCompare, Etherscan) - Removed CoinGecko from suggested tools since no API key available - Modified ChartDataTool to use CryptoCompare instead of CoinGecko for price data - Added conditional CoinGecko tool initialization (only if API key present) - Updated market overview to use CryptoCompare data source - Enhanced tool selection logic to exclude unavailable APIs - Added comprehensive testing for tool selection functionalityb091b2c -
fix: Improve session cleanup and management
Priyanshi Saxena- Enhanced ChartDataTool cleanup method with proper session management - Added try/finally blocks to ensure CoinGecko tool cleanup - Improved garbage collection for better memory management - Fixed aiohttp session closure issues that were causing warnings18efaca -
fix: Add missing validate_gemini_response method and cleanup method
Priyanshi Saxena- Added validate_gemini_response method to AISafetyGuard - Added cleanup method to ChartDataTool to prevent AttributeError - Improved Gemini tool parsing logic to handle all suggested tools - Updated Gemini model to use 'gemini-2.0-flash-lite'c785b3f -
new
Priyanshi Saxena2fe0e75 -
feat: Add Gemini/Ollama toggle functionality with API error fixes
Priyanshi Saxena✨ New Features: - Add interactive toggle switch in UI to choose between Ollama (Local) and Gemini (Cloud) - Dynamic LLM selection with preference persistence in localStorage - Support both Ollama and Gemini in research agent with automatic fallbacks - Real-time status updates showing which AI model is being used �� Backend Changes: - Update research agent to support both LLMs with use_gemini parameter - Add _research_with_gemini_tools method for Gemini-powered research - Update query request model to include use_gemini field - Automatic LLM initialization and availability detection 🎨 Frontend Changes: - Beautiful toggle switch with animated slider and labels - Persistent user preference storage - Dynamic status messages based on selected LLM - Responsive design for header controls 🛠️ Bug Fixes: - Fix CoinGecko API 401 errors by adding proper fallback to mock data - Improved error handling for chart_data_tool API failures - Better session cleanup to prevent connection warnings 🔒 …6bf47a1 -
fix: Resolve config attribute error and chart_data_tool parameter handling
Priyanshi Saxena- Fix 'Web3ResearchAgent' object has no attribute 'config' error - Change self.config.OLLAMA_MODEL to config.OLLAMA_MODEL in metadata - Add proper parameter handling for chart_data_provider tool - Extract chart_type and symbol from query for structured tool calls - Prevent chart_data_tool from receiving raw query strings Resolves: - AttributeError: 'Web3ResearchAgent' object has no attribute 'config' - chart_data_provider error: 'Unknown chart type: Analyze Bitcoin...' - Proper tool parameter extraction and execution0d94513 -
fix: Add comprehensive syntax validation and debugging
Priyanshi Saxena- Fix unterminated f-string literals in app.py exception handlers - Add validate_startup.py script for comprehensive pre-startup validation - Add dev_check.sh script for development-time syntax checking - Integrate startup validation into Docker container - Validate Python syntax, imports, configuration, and environment - Prevent syntax errors from reaching production deployment Fixes: - Unterminated f-string in asyncio.TimeoutError exception handler - Unterminated f-string in general Exception handler - Add comprehensive error prevention systemfb7643a -
fix: Set HOME environment to /app for Ollama container
Priyanshi Saxena- Set HOME=/app to ensure Ollama uses /app/.ollama instead of /.ollama - Add proper error handling and debugging in startup script - Change working directory to /app before running Ollama commands - Ensure proper ownership and permissions for Ollama data directory06a2cb8 -
fix: Explicit OLLAMA_HOME environment for containerized deployment
Priyanshi Saxena- Use OLLAMA_HOME=/app/.ollama directly in ollama commands - Add debug logging to show directory creation - Ensure Ollama uses correct data directory in HuggingFace Spaces - Fix permission denied error by explicitly setting data path69f1893 -
fix: Docker permissions for Ollama in HuggingFace Spaces
Priyanshi Saxena- Add OLLAMA_HOME environment variable pointing to /app/.ollama - Create Ollama directory with proper permissions in startup script - Export OLLAMA_HOME in startup script to ensure Ollama uses correct path - Fix permission denied error when creating Ollama data directoryf82980e -
fix: shorten short_description to meet HF 60-char limit
Priyanshi Saxena- Changed from 71 chars to 57 chars - 'AI-powered crypto research with real-time blockchain data'85cb7be -
project complete
Priyanshi Saxenac02fe07
-
last
Priyanshi Saxena784a974 -
last
Priyanshi Saxenac11b966 -
last
Priyanshi Saxena1799dd5 -
Fix JavaScript regex syntax error
Priyanshi Saxena- Simplified fallback markdown processing to avoid complex regex patterns - Removed problematic regex patterns that caused 'Invalid regular expression' error - Kept essential formatting (bold, italic, code, line breaks) - This should resolve the frontend status check issuee142284 -
Fix frontend status checking logic
Priyanshi Saxena- Improved status check conditions to handle enabled state properly - Added immediate status check on page load - Enhanced debugging with DOM element verification - Simplified status checking flow43c3569 -
Enhanced status checking and error handling
Priyanshi Saxena- Added detailed logging to status endpoint - Improved error handling in status check function - Added retry mechanism for failed status checks - Enhanced service initialization logging - Better debugging information in status response4c07e01 -
last
Priyanshi Saxena254afdc -
chore: cleaning up
Priyanshi Saxena4aa0bed -
final commit with chart generation
Priyanshi Saxena4498d8e -
feat: more features
Priyanshi Saxenac52b367 -
Add comprehensive logging and debug endpoints for tool calling
Priyanshi Saxena2c26464 -
Simplify README and force clean rebuild
Priyanshi Saxena81a07ed -
Force rebuild: Add file verification and update Dockerfile comments
Priyanshi Saxena598f07a -
Fix Dockerfile: Update CMD to use app.py instead of deleted app_fastapi.py
Priyanshi Saxena96e7468 -
docs: update README
Priyanshi Saxenaa33b0e1 -
fix: etherscan_tool error fix
Priyanshi Saxenaea46ec8 -
feat: testing done
Priyanshi Saxena9b006e9