mem0ai / mem0

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

Add support for API key configuration in LiteLLM #1746

Open Devanshusp opened 2 months ago

Devanshusp commented 2 months 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 months ago

@Dev-Khant is this issue open for contribution?

Dev-Khant commented 2 months ago

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

Devanshusp commented 2 months ago

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

Dev-Khant commented 2 months 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 2 months ago

Hi @Devanshusp , are you still working on this?