Replies: 1 comment
-
Fixed by #6927 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to set the AutoGPT (using Azure OpenAI) on my local MacBook and am getting the following error
TypeError: OpenAI.init() got an unexpected keyword argument 'api_version'
in the .env i have provided
OPENAI_API_KEY=<my Azure's Open AI Key>
EXECUTE_LOCAL_COMMANDS=True
OPENAI_API_BASE_URL=https://myOrganization.openai.azure.com/
OPENAI_API_TYPE="azure"
USE_AZURE=True
AZURE_CONFIG_FILE=azure.yaml
azure.yaml
azure_api_type: "azure"
azure_api_base: "https://myOrganization.openai.azure.com"
azure_api_version: 2023-07-01-preview
azure_model_map:
fast_llm_model_deployment_id: "gpt-4-32k"
smart_llm_model_deployment_id: "gpt-4-32k"
embedding_model_deployment_id: "text-embedding-ada-002"
--trace --
`INFO: Started server process [53876]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
Traceback (most recent call last):
File "", line 1, in
File "/Users/kshitiz.pandey/Library/Caches/pypoetry/virtualenvs/agpt-svHnGcT4-py3.11/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/Library/Caches/pypoetry/virtualenvs/agpt-svHnGcT4-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/Library/Caches/pypoetry/virtualenvs/agpt-svHnGcT4-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/Library/Caches/pypoetry/virtualenvs/agpt-svHnGcT4-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/app/cli.py", line 268, in serve
run_auto_gpt_server(
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/core/runner/client_lib/utils.py", line 60, in wrapper
return asyncio.run(f(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/anaconda3/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/anaconda3/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/app/main.py", line 337, in run_auto_gpt_server
apply_overrides_to_config(
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/app/configurator.py", line 116, in apply_overrides_to_config
config.fast_llm = check_model(
^^^^^^^^^^^^
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/app/configurator.py", line 193, in check_model
models = api_manager.get_models(api_credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kshitiz.pandey/maersk/git/AutoGPT/autogpts/autogpt/autogpt/llm/api_manager.py", line 111, in get_models
OpenAI(**openai_credentials.get_api_access_kwargs()).models.list().data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OpenAI.init() got an unexpected keyword argument 'api_version'
`
Beta Was this translation helpful? Give feedback.
All reactions