Solution skill
Support for Azure open Ai
Complete solution
Practical fix from a real Zep issue: Support for Azure open Ai
Support for Azure open Ai
TL;DR
[paul-paliychuk (maintainer)]: @mariaapostigo Hey, chiming in here, sorry for the delay. Can you try passing the embedder option into Graphiti intialization as follows: ``python from graphiti_core.embedder.openai import OpenAIEmbedder, OpenAIEmbedderConfig graphiti = Graphiti( neo4j_uri, neo4j_user, neo4j_password, embedder=OpenAIEmbedder( config=OpenAIEmbedderConfig( embedding_model=model_name, ), client=AsyncAzureOpenAI( api_version=api_version, azure_endpoint=endpoint, api_key value [redacted] ), ), ) You need to make sure to provide the AsyncAzureOpenaiClient into the OpenAIEmbedder`, otherwise a first party openai client will be used by default and that's why things don't work with azure embedding models. I created the deployment of an embedding model on azure and was able to confirm that the above snippet will w
Use this when you run into the situation in the title.
When not to use this skill: unrelated tasks. It covers only the procedure above.
Compatibility
The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.
Details
Context: GitHub issue getzep/graphiti#254 (closed, 12 comments): How do I use azure open ai credentials. Looks like by default only Open AI credentials are acceted.
Evidence
GitHub issue getzep/graphiti#254 (closed, 12 comments): How do I use azure open ai credentials. Looks like by default only Open AI credentials are acceted. Verified answer: [paul-paliychuk (maintainer)]: @mariaapostigo Hey, chiming in here, sorry for the delay. Can you try passing the embedder option into Graphiti intialization as follows: ``python from graphiti_core.embedder.openai import OpenAIEmbedder, OpenAIEmbedderConfig graphiti = Graphiti( neo4j_uri, neo4j_user, neo4j_password, embedder=OpenAIEmbedder( config=OpenAIEmbedderConfig( embedding_model=model_name, ), client=AsyncAzureOpenAI( api_version=api_version, azure_endpoint=endpoint, api_key value [redacted] ), ), ) You need to make sure to provide the AsyncAzureOpenaiClient into the OpenAIEmbedder`, otherwise a first party openai client will be used by default and that's why things don't work with azure embedding models. I created the deployment of an embedding model on azure and was able to confirm that the above snippet will w Source: https://github.com/getzep/graphiti/issues/254
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_K40HS9t9cHDk-qugINX3lA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Support for Azure open Ai <span>— Vectle</span></a>