reworkd / AgentGPT

🤖 Assemble, configure, and deploy autonomous AI Agents in your browser.
https://agentgpt.reworkd.ai
GNU General Public License v3.0
31.74k stars 9.23k forks source link

Platform Container Fails to Allow Selection of GPT-4 Due to Missing httpx Python Module #1323

Closed kazin-kharizma closed 1 year ago

kazin-kharizma commented 1 year ago

Issue: Platform Container Fails to Allow Selection of GPT-4 Due to Missing httpx Python Module

Expected Behavior: The platform container should start without any errors. Upon confirming your API key, the dropdown selector should allow you to choose between different models like gpt-3.5, gpt-3.5-turbo, and gpt-4. All required Python modules should be installed during the container build process.

Current Behavior: The container starts and http://localhost:3000 comes up, but the dropdown selector for choosing between models is non-functional. Fresh installs do not resolve the issue. Additionally, a ModuleNotFoundError for 'httpx' may appear, indicating not all features will be operational.

Steps to Reproduce:

# Clone the AgentGPT repository and navigate to the project directory
git clone https://github.com/reworkd/AgentGPT.git
cd AgentGPT

# Run the setup script and follow the prompts
./setup.sh

# Open localhost and try to change your model settings
Open https://localhost:3000

Troubleshooting Steps Taken:

Solution: Add httpx = "^0.24.1" to the [dependencies] section of pyproject.toml.

Steps to Implement Solution:

# Open pyproject.toml and add the following line under [dependencies]
httpx = "^0.24.1"

# Rebuild the platform container
docker-compose build platform

# Restart the Docker services
docker-compose down
docker-compose up -d

Additional Information: The project uses Poetry for Python dependency management. The Dockerfile specifies python:3.11-slim-buster as the base image.

Operating Systems Affected:

Acknowledgements:


Feel free to copy-paste this into your GitHub issue. It should align well with the format you're aiming for. 🧐

asim-shrestha commented 1 year ago

Hey @kazin-kharizma, this should be fixed now! Thanks for the report.

cranyy commented 11 months ago

This issue seems to still persist even after fix. I cant select anything other than gpt 3.5. there is no dropdown option