- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.2k
Update got-researcher #1541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            delormeca
  wants to merge
  3
  commits into
  assafelovic:master
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
delormeca:master
  
      
      
   
  
    
  
  
  
 
  
      
    base: master
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
                
     Open
            
            Update got-researcher #1541
      
        
          +158
        
        
          −2
        
        
          
        
      
    
  
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    I'll help you deploy GPT-Researcher on Zeabur! Let me first check the current deployment configuration and then guide you through the Zeabur setup. Now let me check if there are any Zeabur-specific configuration files: Perfect! Now I'll help you deploy GPT-Researcher on Zeabur. Here's a comprehensive guide: 🚀 Zeabur Deployment Guide for GPT-Researcher Step 1: Prepare Your Repository First, let's create a Zeabur-specific configuration file: Now let's create a production-ready Dockerfile optimized for Zeabur: Let's also create a .zeaburignore file to exclude unnecessary files: Now let's create a startup script to handle environment setup: 🚀 Zeabur Deployment Steps Step 2: Deploy on Zeabur Go to Zeabur Dashboard Create a New Project Click "New Project" Name it "gpt-researcher" Connect Your Repository Click "Add Service" Choose "GitHub" and select your repository Select the branch (usually main or master) Configure the Service Build Method: Dockerfile Dockerfile Path: Dockerfile.zeabur (or use the main Dockerfile) Root Directory: / (root of repository) Set Environment Variables Add these required environment variables in Zeabur: # Required API Keys OPENAI_API_KEY=your_openai_api_key_here TAVILY_API_KEY=your_tavily_api_key_here # Optional but recommended LANGCHAIN_API_KEY=your_langchain_api_key_here LANGCHAIN_TRACING_V2=true # Server Configuration HOST=0.0.0.0 PORT=8000 WORKERS=1 # Optional: Custom OpenAI endpoint # OPENAI_BASE_URL=https://your-custom-endpoint.com/v1 # Optional: Additional retrievers # RETRIEVER=tavily,google,bing # Optional: Document path # DOC_PATH=/app/my-docs Step 3: Configure Domain (Optional) In your Zeabur project, go to "Domains" Add a custom domain or use the provided Zeabur domain The app will be available at https://your-app-name.zeabur.app Step 4: Monitor Deployment Check the "Logs" tab in Zeabur dashboard Look for successful startup messages Test the health check endpoint: https://your-app.zeabur.app/ 🔧 Troubleshooting Common Issues If Build Fails: # Check if all dependencies are in requirements.txt # Ensure Dockerfile.zeabur is in the root directory # Verify Python version compatibility If Runtime Fails: # Check environment variables are set correctly # Verify API keys are valid # Check logs for specific error messages If Web Scraping Doesn't Work: # Ensure Chromium is properly installed # Check if the service has enough memory (at least 1GB) # Verify network access is enabled 📊 Resource Requirements Minimum Recommended: Memory: 1GB RAM CPU: 1 vCPU Storage: 2GB For Production: Memory: 2GB+ RAM CPU: 2+ vCPUs Storage: 5GB+ 🎯 Post-Deployment Setup Test the API: curl https://your-app.zeabur.app/ Test Research Generation: curl -X POST https://your-app.zeabur.app/report/ \ -H "Content-Type: application/json" \ -d '{ "task": "What is artificial intelligence?", "report_type": "research_report", "report_source": "web", "tone": "objective" }' Monitor Performance: Check Zeabur dashboard for resource usage Monitor logs for any errors Test WebSocket functionality if needed 🔐 Security Considerations Environment Variables: Never commit API keys to the repository Rate Limiting: Consider implementing rate limiting for production CORS: Configure CORS settings for your domain HTTPS: Zeabur provides HTTPS by default Your GPT-Researcher should now be successfully deployed on Zeabur! The app will be accessible via the provided Zeabur domain and ready to handle research requests. :-)I'll help you deploy GPT-Researcher on Zeabur! Let me first check the current deployment configuration and then guide you through the Zeabur setup. Now let me check if there are any Zeabur-specific configuration files: Perfect! Now I'll help you deploy GPT-Researcher on Zeabur. Here's a comprehensive guide: 🚀 Zeabur Deployment Guide for GPT-Researcher Step 1: Prepare Your Repository First, let's create a Zeabur-specific configuration file: Now let's create a production-ready Dockerfile optimized for Zeabur: Let's also create a .zeaburignore file to exclude unnecessary files: Now let's create a startup script to handle environment setup: 🚀 Zeabur Deployment Steps Step 2: Deploy on Zeabur Go to Zeabur Dashboard Create a New Project Click "New Project" Name it "gpt-researcher" Connect Your Repository Click "Add Service" Choose "GitHub" and select your repository Select the branch (usually main or master) Configure the Service Build Method: Dockerfile Dockerfile Path: Dockerfile.zeabur (or use the main Dockerfile) Root Directory: / (root of repository) Set Environment Variables Add these required environment variables in Zeabur: # Required API Keys OPENAI_API_KEY=your_openai_api_key_here TAVILY_API_KEY=your_tavily_api_key_here # Optional but recommended LANGCHAIN_API_KEY=your_langchain_api_key_here LANGCHAIN_TRACING_V2=true # Server Configuration HOST=0.0.0.0 PORT=8000 WORKERS=1 # Optional: Custom OpenAI endpoint # OPENAI_BASE_URL=https://your-custom-endpoint.com/v1 # Optional: Additional retrievers # RETRIEVER=tavily,google,bing # Optional: Document path # DOC_PATH=/app/my-docs Step 3: Configure Domain (Optional) In your Zeabur project, go to "Domains" Add a custom domain or use the provided Zeabur domain The app will be available at https://your-app-name.zeabur.app Step 4: Monitor Deployment Check the "Logs" tab in Zeabur dashboard Look for successful startup messages Test the health check endpoint: https://your-app.zeabur.app/ 🔧 Troubleshooting Common Issues If Build Fails: # Check if all dependencies are in requirements.txt # Ensure Dockerfile.zeabur is in the root directory # Verify Python version compatibility If Runtime Fails: # Check environment variables are set correctly # Verify API keys are valid # Check logs for specific error messages If Web Scraping Doesn't Work: # Ensure Chromium is properly installed # Check if the service has enough memory (at least 1GB) # Verify network access is enabled 📊 Resource Requirements Minimum Recommended: Memory: 1GB RAM CPU: 1 vCPU Storage: 2GB For Production: Memory: 2GB+ RAM CPU: 2+ vCPUs Storage: 5GB+ 🎯 Post-Deployment Setup Test the API: curl https://your-app.zeabur.app/ Test Research Generation: curl -X POST https://your-app.zeabur.app/report/ \ -H "Content-Type: application/json" \ -d '{ "task": "What is artificial intelligence?", "report_type": "research_report", "report_source": "web", "tone": "objective" }' Monitor Performance: Check Zeabur dashboard for resource usage Monitor logs for any errors Test WebSocket functionality if needed 🔐 Security Considerations Environment Variables: Never commit API keys to the repository Rate Limiting: Consider implementing rate limiting for production CORS: Configure CORS settings for your domain HTTPS: Zeabur provides HTTPS by default Your GPT-Researcher should now be successfully deployed on Zeabur! The app will be accessible via the provided Zeabur domain and ready to handle research requests. :-)
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
No description provided.