graphiti icon indicating copy to clipboard operation
graphiti copied to clipboard

Fixed Azure OpenAI compatibility

Open ArneJanning opened this issue 7 months ago • 2 comments

This PR adds compatibility fixes for Azure OpenAI.


[!IMPORTANT] Add Azure OpenAI compatibility by integrating AsyncAzureOpenAI and updating client configurations in graphiti.py and graphiti_mcp_server.py.

  • Azure OpenAI Integration:
    • Import AsyncAzureOpenAI in graphiti.py and graphiti_mcp_server.py.
    • Use AsyncAzureOpenAI for Azure OpenAI API setup in GraphitiLLMConfig.create_client().
  • Configuration Changes:
    • Modify GraphitiLLMConfig.from_env() to handle Azure-specific environment variables.
    • Update GraphitiLLMConfig.create_client() to support managed identity and API key authentication for Azure.
  • Client Initialization:
    • In graphiti.py, initialize OpenAIEmbedder with embedder client.
    • In graphiti_mcp_server.py, adjust Graphiti initialization to use Azure clients if configured.

This description was created by Ellipsis for d1fffe53e98a469b334f13c92109ec409690c038. You can customize this summary. It will automatically update as commits are pushed.

ArneJanning avatar May 13 '25 12:05 ArneJanning


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

danielchalef avatar May 13 '25 12:05 danielchalef

I have read the CLA Document and I hereby sign the CLA

ArneJanning avatar May 13 '25 12:05 ArneJanning

Closing due to lack of response. We've also made significant Azure updates since this PR was submitted.

danielchalef avatar Jun 25 '25 00:06 danielchalef