yangdx
commited on
Commit
·
6a34a59
1
Parent(s):
e6f3b63
Fix linting
Browse files- README-zh.md +1 -1
- README.md +1 -1
- lightrag/llm/openai.py +3 -1
README-zh.md
CHANGED
@@ -823,7 +823,7 @@ rag = LightRAG(
|
|
823 |
create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
|
824 |
CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
|
825 |
ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
|
826 |
-
|
827 |
-- 如有必要可以删除
|
828 |
drop INDEX entity_p_idx;
|
829 |
drop INDEX vertex_p_idx;
|
|
|
823 |
create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
|
824 |
CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
|
825 |
ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
|
826 |
+
|
827 |
-- 如有必要可以删除
|
828 |
drop INDEX entity_p_idx;
|
829 |
drop INDEX vertex_p_idx;
|
README.md
CHANGED
@@ -844,7 +844,7 @@ For production level scenarios you will most likely want to leverage an enterpri
|
|
844 |
create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
|
845 |
CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
|
846 |
ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
|
847 |
-
|
848 |
-- drop if necessary
|
849 |
drop INDEX entity_p_idx;
|
850 |
drop INDEX vertex_p_idx;
|
|
|
844 |
create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
|
845 |
CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
|
846 |
ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
|
847 |
+
|
848 |
-- drop if necessary
|
849 |
drop INDEX entity_p_idx;
|
850 |
drop INDEX vertex_p_idx;
|
lightrag/llm/openai.py
CHANGED
@@ -89,7 +89,9 @@ def create_openai_async_client(
|
|
89 |
if base_url is not None:
|
90 |
merged_configs["base_url"] = base_url
|
91 |
else:
|
92 |
-
merged_configs["base_url"] = os.environ.get(
|
|
|
|
|
93 |
|
94 |
return AsyncOpenAI(**merged_configs)
|
95 |
|
|
|
89 |
if base_url is not None:
|
90 |
merged_configs["base_url"] = base_url
|
91 |
else:
|
92 |
+
merged_configs["base_url"] = os.environ.get(
|
93 |
+
"OPENAI_API_BASE", "https://api.openai.com/v1"
|
94 |
+
)
|
95 |
|
96 |
return AsyncOpenAI(**merged_configs)
|
97 |
|