mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
21.6k stars 1.97k forks source link

Take api_key from config or os for llms #1706

Closed Dev-Khant closed 3 weeks ago

Dev-Khant commented 4 weeks ago

🚀 The feature

Modify llm class intialization to get api_key from config or os

Motivation, pitch

Give user option to add api key from config

NavyaAlapati13 commented 4 weeks ago

Hey, @Dev-Khant I want to work on this issue, can you please assign this to me?

Dev-Khant commented 4 weeks ago

Yes feel free to work on it.

NavyaAlapati13 commented 4 weeks ago

@Dev-Khant can you provide further context, like which files I need to focus on. It seems some of them already have this managed.

Dev-Khant commented 4 weeks ago

@NavyaAlapati13 It looks like you will have to make change in together.py, groq.py and azure_openai.py. But please other files as well. Thanks.