OS-Copilot / OS-Copilot

An self-improving embodied conversational agent seamlessly integrated into the operating system to automate our daily tasks.
MIT License
1.46k stars 158 forks source link

[General]: Issue running quick_start script #46

Open piperwolters opened 2 months ago

piperwolters commented 2 months ago

I created a conda env and installed everything stated in the README. I made a .env file based on your template and added in my OpenAI key. I have double checked that this API key works outside of the quick_start.py script.

I'm getting the following error when running quick_start.py:

Task:
Your task is: Copy any text file located in the working_dir/document directory that contains the word 'agent' to a new folder named 'agents' 
Operating System Version: Ubuntu 20.04.6 LTS
api call failed: Connection error.
The task list obtained after planning is: None
heroding77 commented 2 months ago

Can you show me the configuration of your .env file? I suspect there might be an issue there.

piperwolters commented 2 months ago

Here it is, with API key masked out.

MODEL_NAME="gpt-4o-2024-05-13"
MODEL_TYPE="OpenAI" # if use the gpt series (OpenAI), lamma series (LLAMA)
OPENAI_API_KEY="sk-proj-********************"
OPENAI_ORGANIZATION=""
API_BASE_URL="http://127.0.0.1:8079"
OPENAI_BASE_URL=""
BING_SUBSCRIPTION_KEY=""
BING_SEARCH_URL="https://api.bing.microsoft.com/v7.0/search"
WOLFRAMALPHA_APP_ID=""
heroding77 commented 2 months ago

You might try commenting out the API_BASE_URL and give it another go. This setting is intended for users who require a VPN.

piperwolters commented 2 months ago

Hm, I get the same output with API_BASE_URL commented out.

heroding77 commented 2 months ago

Could you please take a screenshot of the .env file (with API key masked) and send me the latest entries from the log? This would help me pinpoint the specific issue.

heroding77 commented 2 months ago

Additionally, responses on GitHub might not be very timely. You are welcome to join our Discord to get in touch with us at any time.