mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

Azure support

Open crazyxixi opened this issue 1 year ago • 5 comments

Description

Provided is the access to the azure_openai API, which requires the configuration of llm and embedder in the config. If the API keys for the two are different, they need to be configured separately; otherwise, it is sufficient to configure the environment variables for llm only.

Fixes # (azure_openai support)

Type of change

Please delete options that are not relevant.

  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

To run the azure_test.py file under the test directory directly, you can do so. However, you must first input the keys for llm and embedder, as well as the endpoint and version.

Please delete options that are not relevant.

  • [ ] Unit Test

Checklist:

  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules
  • [ ] I have checked my code and corrected any misspellings

Maintainer Checklist

  • [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
  • [ ] Made sure Checks passed

crazyxixi avatar Jul 29 '24 14:07 crazyxixi

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 29 '24 14:07 CLAassistant

@crazyxixi Can you please resolve the conflicts?

Dev-Khant avatar Aug 03 '24 13:08 Dev-Khant

@crazyxixi Can you please resolve the conflicts?

I've submitted new support to accommodate the new version

crazyxixi avatar Aug 04 '24 08:08 crazyxixi

Hey @crazyxixi Can you please create one PR with all the necessary changes for Azure support?

Dev-Khant avatar Aug 06 '24 10:08 Dev-Khant

Hey @crazyxixi Can you please create one PR with all the necessary changes for Azure support?

I have submitted a new pull request called "Azure embedding support."

crazyxixi avatar Aug 09 '24 11:08 crazyxixi

Closing this PR as changes have already been implemented.

Dev-Khant avatar Oct 08 '24 06:10 Dev-Khant