Merge pull request #1330 from QodiCat/main
Browse files- lightrag/llm/openai.py +2 -0
lightrag/llm/openai.py
CHANGED
@@ -81,6 +81,8 @@ def create_openai_async_client(
|
|
81 |
|
82 |
if base_url is not None:
|
83 |
merged_configs["base_url"] = base_url
|
|
|
|
|
84 |
|
85 |
return AsyncOpenAI(**merged_configs)
|
86 |
|
|
|
81 |
|
82 |
if base_url is not None:
|
83 |
merged_configs["base_url"] = base_url
|
84 |
+
else:
|
85 |
+
merged_configs["base_url"] = os.environ["OPENAI_API_BASE"]
|
86 |
|
87 |
return AsyncOpenAI(**merged_configs)
|
88 |
|