AutoGPT
AutoGPT copied to clipboard
OpenAI API connection error - Azure base URL being added to call
getting a strange error about misconfigured Azure URL - but the USE_AZURE=FALSE is set and when I run a print I get
"The value of self.use_azure: False"
anybody seen this ?
see this one below
- MissingSchema( requests.exceptions.MissingSchema: Invalid URL 'your-base-url-for-azure/chat/completions': No scheme supplied. Perhaps you meant https://your-base-url-for-azure/chat/completions?
and
raise error.APIConnectionError( ###openai.error.APIConnectionError: Error communicating with OpenAI: Invalid URL 'your-base-url-for-azure/chat/completions': No scheme supplied. Perhaps you meant https://your-base-url-for-azure/chat/completions?_###
--
./run.sh
All packages are installed.
NEWS: Welcome to Auto-GPT! We'll keep you informed of the latest news and features by printing messages here. If you don't wish to see this message, you can run Auto-GPT with the --skip-news flag # INCLUDED COMMAND 'send_tweet' IS DEPRICATED, AND WILL BE REMOVED IN THE NEXT STABLE RELEASE Base Twitter functionality (and more) is now covered by plugins: https://github.com/Significant-Gravitas/Auto-GPT-Plugins ## Changes to Docker configuration The workdir has been changed from /home/appuser to /app. Be sure to update any volume mounts accordingly.
WARNING: You are running on summary_memory
branch - this is not a supported branch.
Welcome back! Would you like me to return to being airline ticket price AI?
Asking user via keyboard...
Continue with the last settings?
Name: airline ticket price AI
Role: an ai desinged to find the lowest price on a business class flight ticket one way from sydney australia to san francisco
Goals: ['find the lowest prices ', 'find the shortest flight time', 'identify the booking url', 'save the url to a file', 'shutdowb']
API Budget: $1.5
Continue (y/n): y
airline ticket price AI has been created with the following details:
Name: airline ticket price AI
Role: an ai desinged to find the lowest price on a business class flight ticket one way from sydney australia to san francisco
Goals:
- find the lowest prices
- find the shortest flight time
- identify the booking url
- save the url to a file
- shutdowb Using memory of type: LocalCache Using Browser: chrome Traceback (most recent call last): File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/site-packages/openai/api_requestor.py", line 516, in request_raw result = _thread_context.session.request( File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/site-packages/requests/sessions.py", line 573, in request prep = self.prepare_request(req) File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/site-packages/requests/sessions.py", line 484, in prepare_request p.prepare( File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/site-packages/requests/models.py", line 368, in prepare self.prepare_url(url, params) File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/site-packages/requests/models.py", line 439, in prepare_url raise MissingSchema( requests.exceptions.MissingSchema: Invalid URL 'your-base-url-for-azure/chat/completions': No scheme supplied. Perhaps you meant https://your-base-url-for-azure/chat/completions?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/david/opt/anaconda3/envs/python_3.10_env/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/david/Desktop/dkautogpt/Auto-GPT/autogpt/main.py", line 5, in
same here
Please try the stable branch. And double check you .env.
I have already tried the stable branch. The older versions without the plugins work, only the current one does not.
in the .env file I added a # before the OPENAI_API_BASE=your-base-url-for-azure line and it works fine for me now for clarity, it now looks like: #OPENAI_API_BASE=your-base-url-for-azure
That doesn't work either, I already did it at the beginning. It seems that the configuration has no effect whether I activate or deactivate it.
where in Azure do you find gpt35-deployment-id-for-azure
?
i have deployed the model but i cant find that ID... any thoughts?
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
This issue was closed automatically because it has been stale for 10 days with no activity.