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:
parent
f0cc7709bd
commit
2b16eab0f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue