BedrockException - AWS region not set
Describe the bug
Error when giving prompt top the AI for the first time:
Error condensing thoughts: BedrockException - AWS region not set: set AWS_REGION_NAME or AWS_REGION env variable or in .env file
Setup and configuration
Current version:
My config.toml and environment vars (be sure to redact API keys):
WORKSPACE_DIR="./workspace"
LLM_BASE_URL="http://0.0.0.0:4000/"
LLM_MODEL="ollama/mixtral"
LLM_EMBEDDING_MODEL="ollama/mixtral"
ANTHROPIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
My model and agent (you can see these settings in the UI):
- Model: mistral.mixtral-8x7b-instruct-v0:1
- Agent:MonologueAgent
Commands I ran to install and run OpenDevin: make start-frontend Starting frontend...
litellm --model ollama/mixtral
uvicorn opendevin.server.listen:app --port 3000
Steps to Reproduce:
- Start Open Devin
- input a prompt:
Logs, error messages, and screenshots:
Additional Context
/OpenDevin/agenthub/monologue_agent/utils/monologue.py", line 36, in condense raise RuntimeError(f"Error condensing thoughts: {e}") RuntimeError: Error condensing thoughts: BedrockException - AWS region not set: set AWS_REGION_NAME or AWS_REGION env variable or in .env file
OBSERVATION: Error condensing thoughts: BedrockException - AWS region not set: set AWS_REGION_NAME or AWS_REGION env variable or in .env file Exited before finishing
Point being I don;t want amazon, I didn't setup amazon, why is it giving me this exception?
thanks for the great job btw
Same with claude
What is the output of your logs located at OpenDevin/logs? I don't see anything in the code to ask this so I wonder if something else. Also, I see you ran the make start-frontend but did you also run make start-backend?
We have not use aws in backend. I guess the problem may result from ollama/mixtral . Not sure if anyone have experience on ollama/mixtral can reply.
Trying different models and get the same result, none of ollama models installed on my machine is working. All returns the message: "Oops. Something went wrong: BedrockException - AWS region not set: set AWS_REGION_NAME or AWS_REGION env variable or in .env file".
I had the same issue, this solved it for me: https://github.com/OpenDevin/OpenDevin/issues/619#issuecomment-2041526238
This should be solved as of https://github.com/OpenDevin/OpenDevin/pull/863
If not let us know!