Daniel.y commited on
Commit
50ed665
·
unverified ·
2 Parent(s): 4aaf020 9b48e76

Merge pull request #1330 from QodiCat/main

Browse files
Files changed (1) hide show
  1. 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