Fix Azure OpenAI configuration parameter in README (#807)

Change llm_config parameter to config in OpenAIClient and OpenAIRerankerClient
examples to match actual API. This resolves TypeError when users follow the
Azure OpenAI configuration examples.

Fixes: TypeError: OpenAIClient.__init__() got an unexpected keyword argument 'llm_config'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Jack Ryan 2025-08-05 13:40:29 -05:00 committed by GitHub
parent f0cc7709bd
commit 2b16eab0f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,7 +317,7 @@ graphiti = Graphiti(
"neo4j",
"password",
llm_client=OpenAIClient(
llm_config=azure_llm_config,
config=azure_llm_config,
client=llm_client_azure
),
embedder=OpenAIEmbedder(
@ -327,7 +327,7 @@ graphiti = Graphiti(
client=embedding_client_azure
),
cross_encoder=OpenAIRerankerClient(
llm_config=LLMConfig(
config=LLMConfig(
model=azure_llm_config.small_model # Use small model for reranking
),
client=llm_client_azure