mem0ai / mem0

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

Add support for API key configuration in LiteLLM #1746

Open Devanshusp opened 3 weeks ago

Devanshusp commented 3 weeks ago

🚀 The feature

Allow the LiteLLM integration to use an API key specified in the configuration object instead of requiring it to be set as an environment variable.

Motivation, pitch

Right now, the LiteLLM integration only allows setting the API key through environment variables, which isn't always the most convenient option. By allowing the API key to be specified directly in the configuration object (self.config.api_key), we make it easier for developers to manage their API keys within their application’s settings.

Jai0401 commented 2 weeks ago

@Dev-Khant is this issue open for contribution?

Dev-Khant commented 2 weeks ago

@Devanshusp Are you working on the active PR? Please let us know.

Devanshusp commented 2 weeks ago

Yes @Dev-Khant, working on closing out this issue with #1747

Dev-Khant commented 2 weeks ago

Yes @Dev-Khant, working on closing out this issue with #1747

Sounds good, I have left a comment there. Please have a look.

memsranga commented 3 days ago

Hi @Devanshusp , are you still working on this?