followup to Issue https://github.com/cpacker/MemGPT/discussions/999#discussioncomment-8461322 #1031
rajendra-t
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi @cpacker I updated the code in my local and passed embedding API key in above as suggested. Post that I configured to use GPT4-32 model with another API KEY passed into AZURE_OPENAI_KEY. However, with this version of pymemgpt (pymemgpt==0.3.2) I am getting below error, I am not sure why, I have setup all the variables as suggested by you. Can you please suggest?
export AZURE_OPENAI_KEY="..."
export AZURE_OPENAI_VERSION="2023-07-01-preview"
export AZURE_OPENAI_ENDPOINT="https://....openai.azure.com"
export AZURE_OPENAI_DEPLOYMENT="..."
export AZURE_OPENAI_EMBEDDING_VERSION="2023-07-01-preview"
export AZURE_OPENAI_EMBEDDING_ENDPOINT="https://....openai.azure.com"
export AZURE_OPENAI_EMBEDDING_DEPLOYMENT="...
Error:
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/main.py", line 347, in run_agent_loop
new_messages, user_message, skip_next_user_input = process_agent_step(user_message, no_verify)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/main.py", line 323, in process_agent_step
new_messages, heartbeat_request, function_failed, token_warning, tokens_accumulated = memgpt_agent.step(
^^^^^^^^^^^^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/agent.py", line 676, in step
raise e
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/agent.py", line 596, in step
response = self._get_ai_reply(
^^^^^^^^^^^^^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/agent.py", line 359, in _get_ai_reply
raise e
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/agent.py", line 339, in _get_ai_reply
response = create(
^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/llm_api_tools.py", line 379, in wrapper
raise e
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/llm_api_tools.py", line 352, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/llm_api_tools.py", line 461, in create
return azure_openai_chat_completions_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/rajendra.t/Library/CloudStorage/OneDrive-MaerskGroup/GITRepo/MemGPT/.venv/lib/python3.11/site-packages/memgpt/llm_api_tools.py", line 255, in azure_openai_chat_completions_request
assert resource_name is not None, "Missing required field when calling Azure OpenAI"
^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Missing required field when calling Azure OpenAI
Beta Was this translation helpful? Give feedback.
All reactions