Skip to content

Commit

Permalink
api key cannot be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
artivis committed Aug 1, 2024
1 parent ab90e2c commit 7ac52b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2ai/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_api_key() -> str:
:return: string of OpenAI API Key.
:raises: if OPENAI_API_KEY is not set.
"""
key_name = os.environ.get(constants.ROS_OPENAI_API_KEY_ENV_VAR, "")
key_name = os.environ.get(constants.ROS_OPENAI_API_KEY_ENV_VAR, "None")
return key_name

def get_ai_model() -> str:
Expand Down

0 comments on commit 7ac52b7

Please sign in to comment.