fix merge bugs

This commit is contained in:
Liu Zhicong
2023-09-18 12:51:52 -07:00
parent 2301babd4d
commit 0d8ee2a7af
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class OpenAI_ComputeNode(ComputeNode):
if os.getenv("OPENAI_API_KEY") is not None:
self.openai_api_key = os.getenv("OPENAI_API_KEY")
else:
self.openai_api_key = AIStorage.get_instance().get_user_config().get_user_config("openai_api_key")
self.openai_api_key = AIStorage.get_instance().get_user_config().get_user_config("openai_api_key").value
if self.openai_api_key is None:
logger.error("openai_api_key is None!")