diff --git a/README-zh.md b/README-zh.md index c2d4cb37..790d5eaa 100644 --- a/README-zh.md +++ b/README-zh.md @@ -823,7 +823,7 @@ rag = LightRAG( create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- 如有必要可以删除 drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/README.md b/README.md index 36dab6d9..53787c5b 100644 --- a/README.md +++ b/README.md @@ -844,7 +844,7 @@ For production level scenarios you will most likely want to leverage an enterpri create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- drop if necessary drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/lightrag/llm/openai.py b/lightrag/llm/openai.py index 8a75c87c..68f26e4a 100644 --- a/lightrag/llm/openai.py +++ b/lightrag/llm/openai.py @@ -89,7 +89,9 @@ def create_openai_async_client( if base_url is not None: merged_configs["base_url"] = base_url else: - merged_configs["base_url"] = os.environ.get("OPENAI_API_BASE", "https://api.openai.com/v1") + merged_configs["base_url"] = os.environ.get( + "OPENAI_API_BASE", "https://api.openai.com/v1" + ) return AsyncOpenAI(**merged_configs)