-
Notifications
You must be signed in to change notification settings - Fork 1.7k
OpenAI API Key not being passed in to config in openai_tools.py #568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tylerprogramming, thank you for the detailed bug report! You analysis of the code is correct - the way normal MemGPT (no autogen) works is that when you run However, with autogen, there's a chance that you won't use ever run Good news is that PR #555 should fix this issue. |
The fix is in and will be part of the 0.2.6 release we roll out later today. If you'd like to test it immediately you can install from source. The relevant part of the fix for your issue is here: https://github.com/cpacker/MemGPT/blob/main/memgpt/autogen/memgpt_agent.py#L51-L69 Please let me know if this doesn't work for you. |
Hey @cpacker thank you for the response! And yes you are correct, I didn't run |
i got an issue where i already pip install memgpt but~ it kept show |
The bug:
Hello, I am trying the memgpt/autogen/examples/agent_groupchat.py as I know MemGPT has been updated and I accomodated my code to use create_memgpt_autogen_agent_from_config(...) method now. That is okay, but no matter how I try to set the openai_key value to the api_key I get from platform.openai, it is always set to 'None', which in turn gives me this error:
I'm not completely sure, but I did try a new API Key, and just in case I made sure I had enough money in billing.
What I tried:
openai_key = sk-......
It doesn't seem to take it.
It seems that through some debugging, when I get to
openai_tools.py
on thecreate()
method in this code:the api_key is None when it loads the config from the MemGPTConfig.load() method. I hope you can help, maybe it's my memgpt version (I have shown below).
Please describe your setup
memgpt version
? (eg "0.2.4") 0.2.5pip install pymemgpt
memgpt
? (cmd.exe
/Powershell/Anaconda Shell/Terminal) inside PyCharm with Anaconda3 InterpreterI didn't try a Local LLM yet as I wanted to make sure the updates on my end worked for GPT-4 first, then I would know I can get Local LLM working.
The text was updated successfully, but these errors were encountered: